Fixed priorities for synthetic functions.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
var global = ""
|
||||
|
||||
fun Runnable(f: () -> Unit) = object : Runnable {
|
||||
public override fun run() {
|
||||
global = "OK"
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
Runnable { global = "FAIL" } .run()
|
||||
return global
|
||||
}
|
||||
Reference in New Issue
Block a user