Files
kotlin-fork/idea/testData/codeInsight/generate/secondaryConstructors/propertiesWithSupers.kt.after
T
2015-10-13 20:56:52 +03:00

26 lines
435 B
Plaintext
Vendored

// ACTION_CLASS: org.jetbrains.kotlin.idea.actions.generate.KotlinGenerateSecondaryConstructorAction
open class Base(n: Int) {
constructor(a: Int, b: Int): this(a + b)
}
class Foo : Base {
val n: Int
val x = 1
<caret>constructor(a: Int, b: Int, n: Int) : super(a, b) {
this.n = n
}
constructor(n: Int, n1: Int) : super(n) {
this.n = n1
}
fun foo() {
}
fun bar() {
}
}