regression test for KT-3442

This commit is contained in:
Dmitry Jemerov
2015-03-04 17:41:27 +01:00
parent 7522eb4032
commit 46e0fdc067
2 changed files with 12 additions and 0 deletions
@@ -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"
}