Files
kotlin-fork/compiler/testData/codegen/box/closures/captureOuterProperty/inPropertyFromSuperClass.kt
T
2019-11-19 11:00:09 +03:00

17 lines
247 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
interface T {
fun result(): String
}
open class B(val x: String)
class A : B("OK") {
fun foo() = object : T {
val bar = x
override fun result() = bar
}
}
fun box() = A().foo().result()