Files
kotlin-fork/compiler/testData/codegen/box/collections/kt48945b.kt
T
Ilya Chernikov 78ca733c38 FIR JS: add K2 variants of all other JS tests
except tests that are not possible to add without some modifications in
the test infra. See todos on the commented-out test declarations
2022-11-12 16:28:24 +01:00

29 lines
672 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: in progress (M.G.), different structure of f/o
// IGNORE_BACKEND: ANDROID
// ^ NSME: java.util.AbstractMap.remove
// FULL_JDK
// FILE: kt48945b.kt
interface MSS : Map<String, String>
class Test : MSS, JASM<String>() {
override val entries: MutableSet<MutableMap.MutableEntry<String, String>>
get() = throw Exception()
}
fun box(): String {
Test().remove(null, "")
return "OK"
}
// FILE: JASM.java
public abstract class JASM<V> extends java.util.AbstractMap<String, V> {
@Override
public V get(Object key) {
return super.get(key);
}
}