[AA] getExpectForActual analysis-api now returns compatible or weakly incompatible

^KTIJ-27522 Fixed

It's the only reasonable behavior for this API in it's current shape
(when it returns a list of declarations)

It's a common mistake to take only Compatible from
expectActualMatchingMap. The problem will be gone after I fix KT-62590

Motivation to fix this bug, is because it will be easier for me to split
expect-actual matcher-checker-monster thing KT-62590

Review: https://jetbrains.team/p/kt/reviews/12750/timeline
This commit is contained in:
Nikita Bobko
2023-10-25 23:12:19 +02:00
committed by teamcity
parent 69c209874d
commit e778ddfd21
9 changed files with 53 additions and 11 deletions
@@ -0,0 +1,13 @@
// !LANGUAGE: +MultiPlatformProjects
// MODULE: commonMain
// FILE: Common.kt
package sample
expect fun foo()
// MODULE: androidMain(commonMain)
// FILE: JvmAndroid.kt
package sample
internal actual fun f<caret>oo() {}
@@ -0,0 +1,2 @@
expected symbols:
Common.kt : fun foo()