[K2] Correctly handle case when expect annotation is unresolved

Don't report if annotation has error type.

Review: KT-MR-12250

^KT-62026 Fixed
This commit is contained in:
Roman Efremov
2023-09-18 17:16:16 +02:00
committed by Space Team
parent 04c1bf749c
commit c88b4105c5
3 changed files with 11 additions and 12 deletions
@@ -1,9 +0,0 @@
// DIAGNOSTICS: -UNRESOLVED_REFERENCE
// MODULE: m1-common
// FILE: common.kt
@NonExistingClass
expect fun foo()
// MODULE: m1-jvm()()(m1-common)
// FILE: jvm.kt
actual fun <!ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT!>foo<!>() {}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// DIAGNOSTICS: -UNRESOLVED_REFERENCE
// MODULE: m1-common
// FILE: common.kt