// !DIAGNOSTICS: -UNUSED_PARAMETER -PARAMETER_NAME_CHANGED_ON_OVERRIDE class KotlinMap1 : java.util.AbstractMap() { override val entries: MutableSet> get() = throw UnsupportedOperationException() override fun remove(x: K, y: V) = true } class KotlinMap2 : java.util.AbstractMap() { override val entries: MutableSet> get() = throw UnsupportedOperationException() override fun remove(x: String, y: Int) = true } fun foo(x: MutableMap, y: java.util.HashMap, z: java.util.AbstractMap) { x.remove("", 1) x.remove("", "") x.remove("", null) y.remove("", 1) y.remove("", "") y.remove("", null) z.remove("", 1) z.remove("", "") z.remove("", null) }