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
This commit is contained in:
committed by
Space Team
parent
7d584e0eb4
commit
672b5ba0d7
+3
-1
@@ -1,4 +1,6 @@
|
||||
// FULL_JDK
|
||||
|
||||
fun test(map: java.util.AbstractMap<String, Int>) {
|
||||
map.remove("", null)
|
||||
map.remove(null)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user