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
24 lines
353 B
Kotlin
Vendored
24 lines
353 B
Kotlin
Vendored
// IGNORE_BACKEND: WASM
|
|
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
|
|
// KJS_WITH_FULL_RUNTIME
|
|
// DONT_TARGET_EXACT_BACKEND: NATIVE
|
|
|
|
class A : HashMap<String, Double>()
|
|
|
|
fun box(): String {
|
|
val a = A()
|
|
val b = A()
|
|
|
|
a.put("", 0.0)
|
|
a.remove("")
|
|
|
|
a.putAll(b)
|
|
a.clear()
|
|
|
|
a.keys
|
|
a.values
|
|
a.entries
|
|
|
|
return "OK"
|
|
}
|