Files
kotlin-fork/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractMap.kt
T
2023-12-26 10:18:19 +00:00

26 lines
421 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// JVM_ABI_K1_K2_DIFF: KT-57268
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"
}