Files
kotlin-fork/compiler/testData/codegen/box/sam/constructors/nonTrivialRunnable.kt
T
2019-11-19 11:00:09 +03:00

15 lines
217 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
var result = "FAIL"
fun getFun(): () -> Unit {
return { result = "OK" }
}
fun box(): String {
val r = Runnable(getFun())
r.run()
return result
}