Convert to secondary constructor: suggest on class name

#KT-40861 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-09-08 09:26:19 +09:00
committed by Dmitry Gridin
parent 2c5c15f503
commit ce407471ec
7 changed files with 70 additions and 31 deletions
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
class Foo() <caret>{
fun bar() {}
}
@@ -0,0 +1 @@
class <caret>Foo(val x: Int)
@@ -0,0 +1,7 @@
class Foo {
val x: Int
constructor(x: Int) {
this.x = x
}
}
@@ -0,0 +1,2 @@
// IS_APPLICABLE: false
class Fo<caret>o constructor()
@@ -0,0 +1,2 @@
// IS_APPLICABLE: false
class <caret>Foo