Files
kotlin/compiler/testData/codegen/box/synchronized/nestedSameObject.kt
2016-11-09 21:41:12 +03:00

17 lines
284 B
Kotlin
Vendored

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