11 lines
230 B
Kotlin
Vendored
11 lines
230 B
Kotlin
Vendored
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"
|
|
} |