regression test for KT-3442
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
fun box(): String {
|
||||
val m = hashMapOf<String, String?>()
|
||||
m.put("b", null)
|
||||
val oldValue = m.getOrPut("b", { "Foo" })
|
||||
return if (oldValue == null) "OK" else "fail: $oldValue"
|
||||
}
|
||||
Reference in New Issue
Block a user