Code Insight: "Generate secondary constructor" action
#KT-6970 Fixed
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// ACTION_CLASS: org.jetbrains.kotlin.idea.actions.generate.KotlinGenerateSecondaryConstructorAction
|
||||
// WITH_RUNTIME
|
||||
class Foo {<caret>
|
||||
val x = 1
|
||||
val y: Int
|
||||
val z: Int get() = 3
|
||||
val u: Int by lazy { 4 }
|
||||
|
||||
init {
|
||||
y = 2
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user