More tests for synchronized() {}

This commit is contained in:
Andrey Breslav
2014-07-03 18:39:57 +04:00
parent 90690e0711
commit 6422bafb7a
7 changed files with 96 additions and 2 deletions
@@ -0,0 +1,10 @@
fun box(): String {
var obj = "0" as java.lang.Object
val result = synchronized (obj) {
"239"
}
if (result != "239") return "Fail: $result"
return "OK"
}