mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
12 lines
205 B
Kotlin
Vendored
12 lines
205 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// IGNORE_BACKEND: NATIVE
|
|
|
|
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"
|
|
} |