12 lines
260 B
Kotlin
Vendored
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"
|
|
} |