[FIR] FirJavaFacade: do not duplicate record constructor

The fresh version of intellij has all record-related declarations,
so an additional fake constructor leads to errors like
KTIJ-25364 (OVERLOAD_RESOLUTION_AMBIGUITY)

^KTIJ-25366 Fixed
^KTIJ-25364 Fixed
^KTIJ-25368 Fixed
^KTIJ-25370 Fixed
This commit is contained in:
Dmitrii Gridin
2023-07-11 17:52:56 +02:00
committed by Space Team
parent 97a12af03e
commit b67b37cdb3
8 changed files with 127 additions and 30 deletions
@@ -33559,6 +33559,18 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/testsWithJava17/jvmRecord/simpleRecords.kt");
}
@Test
@TestMetadata("simpleRecordsDefaultConstructor.kt")
public void testSimpleRecordsDefaultConstructor() throws Exception {
runTest("compiler/testData/diagnostics/tests/testsWithJava17/jvmRecord/simpleRecordsDefaultConstructor.kt");
}
@Test
@TestMetadata("simpleRecordsWithSecondaryConstructor.kt")
public void testSimpleRecordsWithSecondaryConstructor() throws Exception {
runTest("compiler/testData/diagnostics/tests/testsWithJava17/jvmRecord/simpleRecordsWithSecondaryConstructor.kt");
}
@Test
@TestMetadata("supertypesCheck.kt")
public void testSupertypesCheck() throws Exception {
@@ -33559,6 +33559,18 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/testsWithJava17/jvmRecord/simpleRecords.kt");
}
@Test
@TestMetadata("simpleRecordsDefaultConstructor.kt")
public void testSimpleRecordsDefaultConstructor() throws Exception {
runTest("compiler/testData/diagnostics/tests/testsWithJava17/jvmRecord/simpleRecordsDefaultConstructor.kt");
}
@Test
@TestMetadata("simpleRecordsWithSecondaryConstructor.kt")
public void testSimpleRecordsWithSecondaryConstructor() throws Exception {
runTest("compiler/testData/diagnostics/tests/testsWithJava17/jvmRecord/simpleRecordsWithSecondaryConstructor.kt");
}
@Test
@TestMetadata("supertypesCheck.kt")
public void testSupertypesCheck() throws Exception {