Files
kotlin-fork/compiler/testData/codegen/box/closures/captureOuterProperty/inPropertyFromSuperClass.kt
T
2018-06-28 12:26:41 +02:00

17 lines
243 B
Kotlin
Vendored

// IGNORE_BACKEND: 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()