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

15 lines
259 B
Kotlin
Vendored

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