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

11 lines
180 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
fun box(): String {
var result = "FAIL"
val f = { result = "OK" }
val r = Runnable(f)
r.run()
return result
}