blob: a594cf8721398644df498e22b2f8bde5584d3df4 [file] [log] [blame]
// TARGET_BACKEND: JVM
// WITH_STDLIB
fun box(): String {
val obj = "" as java.lang.Object
val obj2 = "1" as java.lang.Object
synchronized (obj) {
synchronized (obj2) {
obj.wait(1)
obj2.wait(1)
}
}
return "OK"
}