[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:
committed by
Space Team
parent
fcff1c2ddc
commit
b68962018c
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user