Build type enhancement properly, by taking into account both bounds of the original flexible type

^KT-44420 Fixed
This commit is contained in:
Victor Petukhov
2021-01-22 17:57:57 +03:00
parent 293f2f9950
commit 83c93aca2e
5 changed files with 64 additions and 7 deletions
@@ -20858,6 +20858,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/typeEnhancement"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("buildFlexibleEnhancement.kt")
public void testBuildFlexibleEnhancement() throws Exception {
runTest("compiler/testData/diagnostics/tests/platformTypes/typeEnhancement/buildFlexibleEnhancement.kt");
}
@Test
@TestMetadata("overriddenExtensions.kt")
public void testOverriddenExtensions() throws Exception {