[FIR] add missed tests for declaration annotations

^KT-63832
This commit is contained in:
Dmitrii Gridin
2023-11-27 14:52:04 +01:00
committed by Space Team
parent 001e9a4489
commit aaaf35fcb8
13 changed files with 154 additions and 2 deletions
@@ -1872,6 +1872,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/annotations/cycleInParameters_before.kt");
}
@Test
@TestMetadata("danglingAnnotation.kt")
public void testDanglingAnnotation() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/danglingAnnotation.kt");
}
@Test
@TestMetadata("DanglingInScript.kts")
public void testDanglingInScript() throws Exception {
@@ -1962,6 +1968,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/annotations/InheritingAnnotationClass.kt");
}
@Test
@TestMetadata("initializerWithNestedAnnotation.kt")
public void testInitializerWithNestedAnnotation() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/initializerWithNestedAnnotation.kt");
}
@Test
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
public void testInvalidTypesInAnnotationConstructor() throws Exception {
@@ -2034,6 +2046,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/annotations/MutuallyRecursivelyAnnotatedGlobalFunction.kt");
}
@Test
@TestMetadata("nestedAliasWithNestedAnnotation.kt")
public void testNestedAliasWithNestedAnnotation() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/nestedAliasWithNestedAnnotation.kt");
}
@Test
@TestMetadata("nestedClassAsAnnotationParameter.kt")
public void testNestedClassAsAnnotationParameter() throws Exception {
@@ -1872,6 +1872,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/annotations/cycleInParameters_before.kt");
}
@Test
@TestMetadata("danglingAnnotation.kt")
public void testDanglingAnnotation() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/danglingAnnotation.kt");
}
@Test
@TestMetadata("DanglingInScript.kts")
public void testDanglingInScript() throws Exception {
@@ -1962,6 +1968,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/annotations/InheritingAnnotationClass.kt");
}
@Test
@TestMetadata("initializerWithNestedAnnotation.kt")
public void testInitializerWithNestedAnnotation() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/initializerWithNestedAnnotation.kt");
}
@Test
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
public void testInvalidTypesInAnnotationConstructor() throws Exception {
@@ -2034,6 +2046,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/annotations/MutuallyRecursivelyAnnotatedGlobalFunction.kt");
}
@Test
@TestMetadata("nestedAliasWithNestedAnnotation.kt")
public void testNestedAliasWithNestedAnnotation() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/nestedAliasWithNestedAnnotation.kt");
}
@Test
@TestMetadata("nestedClassAsAnnotationParameter.kt")
public void testNestedClassAsAnnotationParameter() throws Exception {