Files
kotlin/compiler/testData/codegen/box/callableReference/function/local/captureOuter.kt
2019-11-19 11:00:09 +03:00

14 lines
208 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: 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())
}