Files
kotlin/compiler/testData/codegen/box/arrays/hashMap.kt

12 lines
249 B
Kotlin
Vendored

import java.util.HashMap
operator fun HashMap<String, Int?>.set(index: String, elem: Int?) {
this.put(index, elem)
}
fun box(): String {
val s = HashMap<String, Int?>()
s["239"] = 239
return if (s["239"] == 239) "OK" else "Fail"
}