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

15 lines
227 B
Kotlin
Vendored

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