Files
kotlin/compiler/testData/codegen/box/innerNested/superConstructorCall/localWithClosureExtendsLocalWithClosure.kt
2019-11-19 11:00:09 +03:00

18 lines
379 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val three = 3
open class Local(val one: Int) {
open fun value() = "$three$one"
}
val four = 4
class Derived(val two: Int) : Local(1) {
override fun value() = super.value() + "$four$two"
}
val result = Derived(2).value()
return if (result == "3142") "OK" else "Fail: $result"
}