Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/removeOnAbstractMap.kt
T
Mikhail Glukhikh 672b5ba0d7 K2/Java: implement platform-dependent function filtering in JvmMappedScope
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
2024-01-30 19:44:00 +00:00

7 lines
113 B
Kotlin
Vendored

// FULL_JDK
fun test(map: java.util.AbstractMap<String, Int>) {
map.remove("", null)
map.remove(null)
}