Code Insight: "Generate secondary constructor" action
#KT-6970 Fixed
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// ACTION_CLASS: org.jetbrains.kotlin.idea.actions.generate.KotlinGenerateSecondaryConstructorAction
|
||||
class Foo {
|
||||
val n: Int
|
||||
|
||||
val x = 1
|
||||
|
||||
val m: Int
|
||||
|
||||
<caret>constructor(n: Int, m: Int) {
|
||||
this.n = n
|
||||
this.m = m
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user