Files
kotlin/compiler/testData/codegen/box/synchronized/objectValue.kt
2018-06-09 19:15:38 +03:00

17 lines
330 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// 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"
}