mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
11 lines
179 B
Kotlin
11 lines
179 B
Kotlin
import java.util.HashMap
|
|
|
|
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"
|
|
} |