More tests for synchronized() {}
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
fun box(): String {
|
||||
var obj = "0" as java.lang.Object
|
||||
val result = synchronized (obj) {
|
||||
239L
|
||||
}
|
||||
|
||||
if (result != 239L) return "Fail: $result"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user