10 lines
192 B
Kotlin
Vendored
10 lines
192 B
Kotlin
Vendored
interface Map<K, out V>
|
|
interface MutableMap<K, V>: Map<K, V> {
|
|
operator fun set(k: K, v: V)
|
|
}
|
|
|
|
fun p(p: Map<String, Int>) {
|
|
if (p is MutableMap<String, Int>) {
|
|
p[""] = 1
|
|
}
|
|
} |