mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
16 lines
297 B
Kotlin
Vendored
16 lines
297 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
// WITH_RUNTIME
|
|
|
|
fun box(): String {
|
|
var obj = "0" as java.lang.Object
|
|
val result = synchronized (obj) {
|
|
"239"
|
|
}
|
|
|
|
if (result != "239") return "Fail: $result"
|
|
|
|
return "OK"
|
|
}
|