interface MyMap { operator fun get(k: K1): V1 } interface Foo { operator fun MyMap.set(k: K2, v: V2) fun test(m: MyMap) { m["a"] += 1 } }