Files
kotlin-fork/compiler/testData/codegen/box/innerNested/superConstructorCall/localWithClosureExtendsLocalWithClosure.kt
T
2020-04-27 11:50:26 +03:00

17 lines
349 B
Kotlin
Vendored

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"
}