[FIR] add more tests on annotations for local declarations
^KT-63842
This commit is contained in:
committed by
Space Team
parent
98e12b0d7b
commit
fcb3f003dc
+30
@@ -1740,6 +1740,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/blockLevelOnTheSameLineWarning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classAnnotationsInLocalClass.kt")
|
||||
public void testClassAnnotationsInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/classAnnotationsInLocalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constantFromOuterScopeAsAnnotaionParameter.kt")
|
||||
public void testConstantFromOuterScopeAsAnnotaionParameter() throws Exception {
|
||||
@@ -1878,6 +1884,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/danglingAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("danglingAnnotationInLocalClass.kt")
|
||||
public void testDanglingAnnotationInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/danglingAnnotationInLocalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("DanglingMixed.kt")
|
||||
public void testDanglingMixed() throws Exception {
|
||||
@@ -1968,6 +1980,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/initializerWithNestedAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("initializerWithNestedAnnotationInLocalClass.kt")
|
||||
public void testInitializerWithNestedAnnotationInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/initializerWithNestedAnnotationInLocalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
|
||||
public void testInvalidTypesInAnnotationConstructor() throws Exception {
|
||||
@@ -2046,6 +2064,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/nestedAliasWithNestedAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAliasWithNestedAnnotationInLocalClass.kt")
|
||||
public void testNestedAliasWithNestedAnnotationInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/nestedAliasWithNestedAnnotationInLocalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassAsAnnotationParameter.kt")
|
||||
public void testNestedClassAsAnnotationParameter() throws Exception {
|
||||
@@ -2220,6 +2244,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/typeParameterAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterAnnotationsInLocalClass.kt")
|
||||
public void testTypeParameterAnnotationsInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/typeParameterAnnotationsInLocalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterAsAnnotation.kt")
|
||||
public void testTypeParameterAsAnnotation() throws Exception {
|
||||
|
||||
+30
@@ -1740,6 +1740,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/blockLevelOnTheSameLineWarning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classAnnotationsInLocalClass.kt")
|
||||
public void testClassAnnotationsInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/classAnnotationsInLocalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constantFromOuterScopeAsAnnotaionParameter.kt")
|
||||
public void testConstantFromOuterScopeAsAnnotaionParameter() throws Exception {
|
||||
@@ -1878,6 +1884,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/danglingAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("danglingAnnotationInLocalClass.kt")
|
||||
public void testDanglingAnnotationInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/danglingAnnotationInLocalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("DanglingInScript.kts")
|
||||
public void testDanglingInScript() throws Exception {
|
||||
@@ -1974,6 +1986,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/initializerWithNestedAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("initializerWithNestedAnnotationInLocalClass.kt")
|
||||
public void testInitializerWithNestedAnnotationInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/initializerWithNestedAnnotationInLocalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
|
||||
public void testInvalidTypesInAnnotationConstructor() throws Exception {
|
||||
@@ -2052,6 +2070,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/nestedAliasWithNestedAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAliasWithNestedAnnotationInLocalClass.kt")
|
||||
public void testNestedAliasWithNestedAnnotationInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/nestedAliasWithNestedAnnotationInLocalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassAsAnnotationParameter.kt")
|
||||
public void testNestedClassAsAnnotationParameter() throws Exception {
|
||||
@@ -2226,6 +2250,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/typeParameterAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterAnnotationsInLocalClass.kt")
|
||||
public void testTypeParameterAnnotationsInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/typeParameterAnnotationsInLocalClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterAsAnnotation.kt")
|
||||
public void testTypeParameterAsAnnotation() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user