[FIR] Don't check class super type annotations for loops

Only do it for typealiases.

#KT-64059 Fixed
This commit is contained in:
Kirill Rakhman
2023-12-14 14:19:30 +01:00
committed by Space Team
parent 984493fe8b
commit 242e16baea
7 changed files with 46 additions and 4 deletions
@@ -2094,6 +2094,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
runTest("compiler/testData/diagnostics/tests/annotations/nestedAliasWithNestedAnnotationInLocalClass.kt");
}
@Test
@TestMetadata("nestedAnnotationOnOuterClassDeclaration.kt")
public void testNestedAnnotationOnOuterClassDeclaration() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/nestedAnnotationOnOuterClassDeclaration.kt");
}
@Test
@TestMetadata("nestedClassAsAnnotationParameter.kt")
public void testNestedClassAsAnnotationParameter() throws Exception {
@@ -2100,6 +2100,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
runTest("compiler/testData/diagnostics/tests/annotations/nestedAliasWithNestedAnnotationInLocalClass.kt");
}
@Test
@TestMetadata("nestedAnnotationOnOuterClassDeclaration.kt")
public void testNestedAnnotationOnOuterClassDeclaration() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/nestedAnnotationOnOuterClassDeclaration.kt");
}
@Test
@TestMetadata("nestedClassAsAnnotationParameter.kt")
public void testNestedClassAsAnnotationParameter() throws Exception {