[FIR] Remove incompatible from expect actual matching if compatible exists

This fixes an issue with checking for default values in call resolution
(see FirDefaultParametersResolver) where it is expected that the map
only contains a single compatible entry.

#KT-59613 Fixed
This commit is contained in:
Kirill Rakhman
2023-07-03 16:43:24 +02:00
committed by Space Team
parent fcff1c2ddc
commit b68962018c
17 changed files with 115 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
// LANGUAGE: +MultiPlatformProjects
// IGNORE_BACKEND_K1: ANY
// IGNORE_REASON: multimodule MPP tests are not supported in K1
// ISSUE: KT-59613
// MODULE: common
// FILE: common.kt
expect fun printJson(pretty: Boolean = false)
expect fun printJson(replacer: () -> Any?)
// MODULE: platform()()(common)
// FILE: platform.kt
actual fun printJson(replacer: () -> Any?) {}
actual fun printJson(pretty: Boolean) {}
fun box(): String {
printJson()
return "OK"
}