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

13 lines
165 B
Kotlin
Vendored

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