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

19 lines
273 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
interface T {
fun result(): String
}
abstract class A<Z>(val x: Z)
open class B : A<String>("OK")
class C : B() {
fun foo() = object : T {
val bar = x
override fun result() = bar
}
}
fun box() = C().foo().result()