Files
kotlin-fork/compiler/testData/codegen/box/sam/constructors/syntheticVsReal.kt
T

12 lines
209 B
Kotlin
Vendored

var global = ""
fun Runnable(f: () -> Unit) = object : Runnable {
public override fun run() {
global = "OK"
}
}
fun box(): String {
Runnable { global = "FAIL" } .run()
return global
}