Files
kotlin-fork/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt
T
2020-11-09 16:04:43 +03:00

28 lines
494 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: STDLIB_COLLECTIONS
// IGNORE_BACKEND_FIR: JVM_IR
// 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"
}