trait Map trait MutableMap: Map { fun set(k: K, v: V) } fun p(p: Map) { if (p is MutableMap) { p[""] = 1 } }