Erased casts supported
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
trait Map<K, out V>
|
||||
trait MutableMap<K, V>: Map<K, V> {
|
||||
fun set(k: K, v: V)
|
||||
}
|
||||
|
||||
fun p(p: Map<String, Int>) {
|
||||
if (p is MutableMap<String, Int>) {
|
||||
p[""] = 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user