Files
kotlin-fork/compiler/testData/cfg/secondaryConstructors/withPrimary.kt
T
2015-03-11 17:45:24 +03:00

25 lines
325 B
Kotlin
Vendored

class A(val w: Char) {
val x: Int
var y: Int
val z: Int
val v = -1
constructor(): this('a') {
y = 2
}
// anonymous
init {
x = w
z = 8
}
constructor(a: Int, b: Int = 3): this(b.toChar()) {
y = x
}
// anonymous
init {
y = 9
}
}