K2: introduce platform-dependent filtering for non-JVM platforms

This commit fixes a false negative in testData/cli/metadata/getOrDefault
Related to KT-57268
This commit is contained in:
Mikhail Glukhikh
2024-01-30 11:08:06 +01:00
committed by Space Team
parent 7599ff0ef1
commit ed246d372b
4 changed files with 62 additions and 13 deletions
+4 -1
View File
@@ -1 +1,4 @@
OK
compiler/testData/cli/metadata/getOrDefault.kt:2:38: error: unresolved reference 'getOrDefault'.
fun foo(map: Map<String, Int>) = map.getOrDefault("", 0)
^
COMPILATION_ERROR