KT-4107 Don't generate readResolve for data objects

This commit is contained in:
Pavel Mikhailovskii
2022-11-30 09:26:14 +01:00
committed by Space Team
parent ea346e3e0e
commit f96d41e414
9 changed files with 6 additions and 151 deletions
@@ -61,22 +61,6 @@ public class DiagnosticsTestWithJvmIrBackendGenerated extends AbstractDiagnostic
runTest("compiler/testData/diagnostics/testsWithJvmBackend/suspendInlineCycle_ir.kt");
}
@Nested
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/dataObjects")
@TestDataPath("$PROJECT_ROOT")
public class DataObjects {
@Test
public void testAllFilesPresentInDataObjects() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/dataObjects"), Pattern.compile("^(.+)\\.kts?$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("customReadResolve.kt")
public void testCustomReadResolve() throws Exception {
runTest("compiler/testData/diagnostics/testsWithJvmBackend/dataObjects/customReadResolve.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature")
@TestDataPath("$PROJECT_ROOT")
@@ -61,16 +61,6 @@ public class DiagnosticsTestWithOldJvmBackendGenerated extends AbstractDiagnosti
runTest("compiler/testData/diagnostics/testsWithJvmBackend/suspendInlineCycle.kt");
}
@Nested
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/dataObjects")
@TestDataPath("$PROJECT_ROOT")
public class DataObjects {
@Test
public void testAllFilesPresentInDataObjects() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/dataObjects"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), TargetBackend.JVM_OLD, true);
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature")
@TestDataPath("$PROJECT_ROOT")