Convert to secondary constructor: suggest on class name
#KT-40861 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
2c5c15f503
commit
ce407471ec
+4
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
class Foo() <caret>{
|
||||
fun bar() {}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
class <caret>Foo(val x: Int)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class Foo {
|
||||
val x: Int
|
||||
|
||||
constructor(x: Int) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
// IS_APPLICABLE: false
|
||||
class Fo<caret>o constructor()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
// IS_APPLICABLE: false
|
||||
class <caret>Foo
|
||||
Reference in New Issue
Block a user