Files
kotlin-fork/compiler/testData/codegen/box/secondaryConstructors/callFromPrimaryWithOptionalArgs.kt
T
2019-11-19 11:00:09 +03:00

12 lines
260 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
open class A(val result: String) {
constructor(x: Int, y: Int = 99) : this("$x$y")
}
class B(x: Int) : A(x)
fun box(): String {
val result = B(11).result
if (result != "1199") return "fail: $result"
return "OK"
}