Files
kotlin-fork/idea/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassPrimaryAndSecondaryConstructors.kt
T
2015-11-16 11:30:03 +03:00

14 lines
235 B
Kotlin
Vendored

// "Initialize with constructor parameter" "true"
open class A(s: String) {
<caret>var n: Int
get() = 1
constructor(): this("")
constructor(a: Int): this("" + a)
}
class B : A("")
fun test() {
val a = A("")
}