Files
kotlin-fork/compiler/testData/codegen/box/sam/constructors/nonTrivialRunnable.kt
T
2018-06-28 12:26:41 +02:00

15 lines
213 B
Kotlin
Vendored

// IGNORE_BACKEND: 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
}