FIR: don't check annotations on returnTypeRefs that are not of real kind

This fixes an exception in FirAnnotationChecker where we tried to report
repeated annotations on implicit type refs that have no source.
This commit is contained in:
Kirill Rakhman
2023-01-12 11:49:56 +01:00
committed by Space Team
parent c0961e91b8
commit 5a08d8da8d
6 changed files with 90 additions and 1 deletions
@@ -4870,6 +4870,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/removeOnAbstractMap.kt");
}
@Test
@TestMetadata("repeatedAnnotations.kt")
public void testRepeatedAnnotations() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/repeatedAnnotations.kt");
}
@Test
@TestMetadata("runOnIntegerLiteral.kt")
public void testRunOnIntegerLiteral() throws Exception {