[Fir] get candidate from missed type args diagnostics in annotation call

Otherwise, navigation to unresolved reference is impossible ^ KTIJ-26441

In order to avoid duplicated diagnostic, wrapper is still used.
Symbol collector is updated to retrieve symbols from that wrapper.


Merge-request: KT-MR-11381
Merged-by: Anna Kozlova <Anna.Kozlova@jetbrains.com>
This commit is contained in:
Anna Kozlova
2023-07-31 16:12:17 +00:00
committed by Space Team
parent 9c3fa5e878
commit 8fb9461276
12 changed files with 85 additions and 1 deletions
@@ -687,6 +687,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
runTest("compiler/testData/diagnostics/tests/localInterfaces.kt");
}
@Test
@TestMetadata("missedTypeArgumentsInAnnotationCall.kt")
public void testMissedTypeArgumentsInAnnotationCall() throws Exception {
runTest("compiler/testData/diagnostics/tests/missedTypeArgumentsInAnnotationCall.kt");
}
@Test
@TestMetadata("missingIteratorMissing.kt")
public void testMissingIteratorMissing() throws Exception {
@@ -687,6 +687,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
runTest("compiler/testData/diagnostics/tests/localInterfaces.kt");
}
@Test
@TestMetadata("missedTypeArgumentsInAnnotationCall.kt")
public void testMissedTypeArgumentsInAnnotationCall() throws Exception {
runTest("compiler/testData/diagnostics/tests/missedTypeArgumentsInAnnotationCall.kt");
}
@Test
@TestMetadata("missingIteratorMissing.kt")
public void testMissingIteratorMissing() throws Exception {