Files
kotlin-fork/compiler/testData/codegen/box/callableReference/local/captureOuter.kt
T
2013-12-24 20:41:20 +04:00

13 lines
179 B
Kotlin

class Outer {
val result = "OK"
inner class Inner {
fun foo() = result
}
}
fun box(): String {
val f = Outer.Inner::foo
return Outer().Inner().f()
}