Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/synchronized/objectValue.kt
T

16 lines
305 B
Kotlin

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// 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"
}