Files
kotlin-fork/backend.native/tests/external/codegen/box/synchronized/nestedSameObject.kt
T
2017-03-13 15:31:46 +03:00

17 lines
292 B
Kotlin

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
fun box(): String {
val obj = "" as java.lang.Object
synchronized (obj) {
synchronized (obj) {
obj.wait(1)
}
}
return "OK"
}