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

17 lines
333 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
class Local {
open inner class Inner(val s: String) {
open fun result() = "Fail"
}
val realResult = "OK"
val obj = object : Inner(realResult) {
override fun result() = s
}
}
return Local().obj.result()
}