interface A { operator fun inc(): A } interface MyMap { operator fun get(k: K): V operator fun set(k: K, v: V): Unit } fun test(m: MyMap) { m["a"]++ }