[FIR] Relax MULTIPLE_DEFAULTS_* to account for the K1 behavior
^KT-56442 ^KT-36188
This commit is contained in:
committed by
Space Team
parent
3f1bf6112f
commit
13a7bb95b3
+36
@@ -357,6 +357,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/falseNegativeDuplicateDefaultValues1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("falseNegativeDuplicateDefaultValues1_error.kt")
|
||||
public void testFalseNegativeDuplicateDefaultValues1_error() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/falseNegativeDuplicateDefaultValues1_error.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("falseNegativeDuplicateDefaultValues2.kt")
|
||||
public void testFalseNegativeDuplicateDefaultValues2() throws Exception {
|
||||
@@ -753,12 +759,30 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/missingIteratorMissing.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("missingMultipleDefaultsOnTransitiveInheritance1.kt")
|
||||
public void testMissingMultipleDefaultsOnTransitiveInheritance1() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/missingMultipleDefaultsOnTransitiveInheritance1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("missingMultipleDefaultsOnTransitiveInheritance2.kt")
|
||||
public void testMissingMultipleDefaultsOnTransitiveInheritance2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/missingMultipleDefaultsOnTransitiveInheritance2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("missingWrongAnnotationTarget.kt")
|
||||
public void testMissingWrongAnnotationTarget() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/missingWrongAnnotationTarget.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("moreThanOneOverriddenMissingK2.kt")
|
||||
public void testMoreThanOneOverriddenMissingK2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/moreThanOneOverriddenMissingK2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("MultilineStringTemplates.kt")
|
||||
public void testMultilineStringTemplates() throws Exception {
|
||||
@@ -771,6 +795,18 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/MultipleBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleDefaultsIncorrectlyAllowed1.kt")
|
||||
public void testMultipleDefaultsIncorrectlyAllowed1() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multipleDefaultsIncorrectlyAllowed1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleDefaultsIncorrectlyAllowed2.kt")
|
||||
public void testMultipleDefaultsIncorrectlyAllowed2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multipleDefaultsIncorrectlyAllowed2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleDefaultsNoSource.kt")
|
||||
public void testMultipleDefaultsNoSource() throws Exception {
|
||||
|
||||
+36
@@ -357,6 +357,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/falseNegativeDuplicateDefaultValues1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("falseNegativeDuplicateDefaultValues1_error.kt")
|
||||
public void testFalseNegativeDuplicateDefaultValues1_error() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/falseNegativeDuplicateDefaultValues1_error.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("falseNegativeDuplicateDefaultValues2.kt")
|
||||
public void testFalseNegativeDuplicateDefaultValues2() throws Exception {
|
||||
@@ -753,12 +759,30 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/missingIteratorMissing.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("missingMultipleDefaultsOnTransitiveInheritance1.kt")
|
||||
public void testMissingMultipleDefaultsOnTransitiveInheritance1() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/missingMultipleDefaultsOnTransitiveInheritance1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("missingMultipleDefaultsOnTransitiveInheritance2.kt")
|
||||
public void testMissingMultipleDefaultsOnTransitiveInheritance2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/missingMultipleDefaultsOnTransitiveInheritance2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("missingWrongAnnotationTarget.kt")
|
||||
public void testMissingWrongAnnotationTarget() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/missingWrongAnnotationTarget.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("moreThanOneOverriddenMissingK2.kt")
|
||||
public void testMoreThanOneOverriddenMissingK2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/moreThanOneOverriddenMissingK2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("MultilineStringTemplates.kt")
|
||||
public void testMultilineStringTemplates() throws Exception {
|
||||
@@ -771,6 +795,18 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/MultipleBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleDefaultsIncorrectlyAllowed1.kt")
|
||||
public void testMultipleDefaultsIncorrectlyAllowed1() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multipleDefaultsIncorrectlyAllowed1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleDefaultsIncorrectlyAllowed2.kt")
|
||||
public void testMultipleDefaultsIncorrectlyAllowed2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multipleDefaultsIncorrectlyAllowed2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleDefaultsNoSource.kt")
|
||||
public void testMultipleDefaultsNoSource() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user