[K1] Correctly handle case when expect annotation is unresolved

Before change NPE was thrown.

Review: KT-MR-12250

^KT-62026
This commit is contained in:
Roman Efremov
2023-09-18 16:56:24 +02:00
committed by Space Team
parent 5cae87b263
commit 04c1bf749c
6 changed files with 40 additions and 0 deletions
@@ -938,6 +938,12 @@ public class FirOldFrontendMPPDiagnosticsWithLightTreeTestGenerated extends Abst
runTest("compiler/testData/diagnostics/tests/multiplatform/annotationMatching/typealiasToKtLibrary.kt");
}
@Test
@TestMetadata("unresolvedReference.kt")
public void testUnresolvedReference() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/annotationMatching/unresolvedReference.kt");
}
@Test
@TestMetadata("valueParameters.kt")
public void testValueParameters() throws Exception {
@@ -938,6 +938,12 @@ public class FirOldFrontendMPPDiagnosticsWithPsiTestGenerated extends AbstractFi
runTest("compiler/testData/diagnostics/tests/multiplatform/annotationMatching/typealiasToKtLibrary.kt");
}
@Test
@TestMetadata("unresolvedReference.kt")
public void testUnresolvedReference() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/annotationMatching/unresolvedReference.kt");
}
@Test
@TestMetadata("valueParameters.kt")
public void testValueParameters() throws Exception {