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

13 lines
169 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class A
fun box(): String {
var result = "Fail"
fun A.ext() { result = "OK" }
val f = A::ext
f(A())
return result
}