[FIR] add more tests diagnostic tests on data and delegated classes

^KT-63522
^KT-63512
^KT-63042
This commit is contained in:
Dmitrii Gridin
2023-11-16 15:48:11 +01:00
committed by Space Team
parent fab63e38aa
commit b3b184f00d
121 changed files with 22418 additions and 0 deletions
@@ -8748,6 +8748,18 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/dataClasses/oneValParam.kt");
}
@Test
@TestMetadata("propertyTypeCollision.kt")
public void testPropertyTypeCollision() throws Exception {
runTest("compiler/testData/diagnostics/tests/dataClasses/propertyTypeCollision.kt");
}
@Test
@TestMetadata("propertyTypeCollisionAndAnnotations.kt")
public void testPropertyTypeCollisionAndAnnotations() throws Exception {
runTest("compiler/testData/diagnostics/tests/dataClasses/propertyTypeCollisionAndAnnotations.kt");
}
@Test
@TestMetadata("repeatedProperties.kt")
public void testRepeatedProperties() throws Exception {
@@ -10467,12 +10479,42 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/delegation/clashes"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("delegateFieldWithAnnotationClash.kt")
public void testDelegateFieldWithAnnotationClash() throws Exception {
runTest("compiler/testData/diagnostics/tests/delegation/clashes/delegateFieldWithAnnotationClash.kt");
}
@Test
@TestMetadata("finalMemberOverridden.kt")
public void testFinalMemberOverridden() throws Exception {
runTest("compiler/testData/diagnostics/tests/delegation/clashes/finalMemberOverridden.kt");
}
@Test
@TestMetadata("nestedNameClash.kt")
public void testNestedNameClash() throws Exception {
runTest("compiler/testData/diagnostics/tests/delegation/clashes/nestedNameClash.kt");
}
@Test
@TestMetadata("nestedNameClash2.kt")
public void testNestedNameClash2() throws Exception {
runTest("compiler/testData/diagnostics/tests/delegation/clashes/nestedNameClash2.kt");
}
@Test
@TestMetadata("nestedNameClash3.kt")
public void testNestedNameClash3() throws Exception {
runTest("compiler/testData/diagnostics/tests/delegation/clashes/nestedNameClash3.kt");
}
@Test
@TestMetadata("nestedNameClashAndAnnotations.kt")
public void testNestedNameClashAndAnnotations() throws Exception {
runTest("compiler/testData/diagnostics/tests/delegation/clashes/nestedNameClashAndAnnotations.kt");
}
@Test
@TestMetadata("propertyTypeMismatch.kt")
public void testPropertyTypeMismatch() throws Exception {
@@ -16031,6 +16031,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/delegation/mixed.kt");
}
@Test
@TestMetadata("nestedNameClash.kt")
public void testNestedNameClash() throws Exception {
runTest("compiler/testData/codegen/box/delegation/nestedNameClash.kt");
}
@Test
@TestMetadata("nestedNameClash2.kt")
public void testNestedNameClash2() throws Exception {
runTest("compiler/testData/codegen/box/delegation/nestedNameClash2.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
@@ -16409,6 +16409,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/delegation/mixed.kt");
}
@Test
@TestMetadata("nestedNameClash.kt")
public void testNestedNameClash() throws Exception {
runTest("compiler/testData/codegen/box/delegation/nestedNameClash.kt");
}
@Test
@TestMetadata("nestedNameClash2.kt")
public void testNestedNameClash2() throws Exception {
runTest("compiler/testData/codegen/box/delegation/nestedNameClash2.kt");
}
@Test
@TestMetadata("sealedClass.kt")
public void testSealedClass() throws Exception {
@@ -16409,6 +16409,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
runTest("compiler/testData/codegen/box/delegation/mixed.kt");
}
@Test
@TestMetadata("nestedNameClash.kt")
public void testNestedNameClash() throws Exception {
runTest("compiler/testData/codegen/box/delegation/nestedNameClash.kt");
}
@Test
@TestMetadata("nestedNameClash2.kt")
public void testNestedNameClash2() throws Exception {
runTest("compiler/testData/codegen/box/delegation/nestedNameClash2.kt");
}
@Test
@TestMetadata("sealedClass.kt")
public void testSealedClass() throws Exception {