Files
kotlin-fork/compiler/testData/codegen/box/callableReference/function/local/captureOuter.kt
T
2018-06-28 12:26:41 +02:00

14 lines
204 B
Kotlin
Vendored

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