11 lines
264 B
Kotlin
Vendored
11 lines
264 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// KJS_WITH_FULL_RUNTIME
|
|
// WITH_RUNTIME
|
|
|
|
fun box(): String {
|
|
val m = hashMapOf<String, String?>()
|
|
m.put("b", null)
|
|
val oldValue = m.getOrPut("b", { "Foo" })
|
|
return if (oldValue == "Foo") "OK" else "fail: $oldValue"
|
|
}
|