Files
kotlin-fork/compiler/testData/codegen/box/closures/captureOuterProperty/inFunction.kt
T
2020-04-09 15:22:55 +03:00

14 lines
201 B
Kotlin
Vendored

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()