Files
kotlin-fork/compiler/testData/codegen/box/arrays/hashMap.kt
T
2021-10-01 17:18:49 +03:00

11 lines
248 B
Kotlin
Vendored

// KJS_WITH_FULL_RUNTIME
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"
}