mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
19 lines
349 B
Kotlin
Vendored
19 lines
349 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
|
|
val obj2 = "1" as java.lang.Object
|
|
|
|
synchronized (obj) {
|
|
synchronized (obj2) {
|
|
obj.wait(1)
|
|
obj2.wait(1)
|
|
}
|
|
}
|
|
|
|
return "OK"
|
|
}
|