mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
23 lines
371 B
Kotlin
Vendored
23 lines
371 B
Kotlin
Vendored
import java.util.AbstractMap
|
|
import java.util.Collections
|
|
|
|
class A : AbstractMap<Int, String>() {
|
|
override fun entrySet(): MutableSet<MutableMap.MutableEntry<Int, String>> = Collections.emptySet()
|
|
}
|
|
|
|
fun box(): String {
|
|
val a = A()
|
|
val b = A()
|
|
|
|
a.remove(0)
|
|
|
|
a.putAll(b)
|
|
a.clear()
|
|
|
|
a.keySet()
|
|
a.values()
|
|
a.entrySet()
|
|
|
|
return "OK"
|
|
}
|