[FIR] Substitute parameter bounds when checking EXPANSIVE_INHERITANCE

^KT-63649 Fixed
This commit is contained in:
Brian Norman
2023-11-21 09:33:19 -06:00
committed by Space Team
parent 3f8505a090
commit f9933adf5e
7 changed files with 85 additions and 4 deletions
@@ -9753,6 +9753,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/declarationChecks/nonExpansiveInheritanceRestriction"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("Comparable.kt")
public void testComparable() throws Exception {
runTest("compiler/testData/diagnostics/tests/declarationChecks/nonExpansiveInheritanceRestriction/Comparable.kt");
}
@Test
@TestMetadata("JavaWithKotlin.kt")
public void testJavaWithKotlin() throws Exception {
@@ -9753,6 +9753,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/declarationChecks/nonExpansiveInheritanceRestriction"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("Comparable.kt")
public void testComparable() throws Exception {
runTest("compiler/testData/diagnostics/tests/declarationChecks/nonExpansiveInheritanceRestriction/Comparable.kt");
}
@Test
@TestMetadata("JavaWithKotlin.kt")
public void testJavaWithKotlin() throws Exception {