KT-4825 Implement "synchronized" properly via monitorenter/monitorexit
#KT-4825 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
fun box(): String {
|
||||
val obj = "" as java.lang.Object
|
||||
|
||||
synchronized (obj) {
|
||||
synchronized (obj) {
|
||||
obj.wait(1)
|
||||
}
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user