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