Files
kotlin/compiler/testData/codegen/box/javaInterop/notNullAssertions/mapPut.kt
Anton Bannykh 8c6337f3f6 [JS IR BE]: support dynamic_var["foo"] = "bar"
Used EQ origin to detect. Added a test to check dynamic_var = "bar" case
is not affected
2018-10-10 13:43:22 +03:00

10 lines
154 B
Kotlin
Vendored

fun <K: Any, V: Any> foo(k: K, v: V) {
val map = HashMap<K, V>()
val old = map.put(k, v)
}
fun box(): String {
foo("", "")
return "OK"
}