14 lines
233 B
Kotlin
Vendored
14 lines
233 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
var global = ""
|
|
|
|
fun Runnable(f: () -> Unit) = object : Runnable {
|
|
public override fun run() {
|
|
global = "OK"
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
Runnable { global = "FAIL" } .run()
|
|
return global
|
|
} |