672b5ba0d7
We drop Kotlin function 'remove' or 'getOrDefault' from JvmMappedScope, if it has platform-dependent annotation, and the bound Java class scope does not contain a function with the same signature. #KT-57268 Fixed
25 lines
389 B
Kotlin
Vendored
25 lines
389 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
import java.util.AbstractMap
|
|
import java.util.Collections
|
|
|
|
class A : AbstractMap<Int, String>() {
|
|
override val entries: MutableSet<MutableMap.MutableEntry<Int, String>> get() = Collections.emptySet()
|
|
}
|
|
|
|
fun box(): String {
|
|
val a = A()
|
|
val b = A()
|
|
|
|
a.remove(0)
|
|
|
|
a.putAll(b)
|
|
a.clear()
|
|
|
|
a.keys
|
|
a.values
|
|
a.entries
|
|
|
|
return "OK"
|
|
}
|