K2: expand types during smartcasting to prevent redundant intersections

#KT-53184 Fixed
This commit is contained in:
Mikhail Glukhikh
2022-07-18 15:17:37 +02:00
committed by Space
parent bc396b9765
commit 5445f4043a
16 changed files with 344 additions and 128 deletions
@@ -17829,6 +17829,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/fir/flexibleIntegerLiterals.kt");
}
@Test
@TestMetadata("getOnNullableTypeAlias.kt")
public void testGetOnNullableTypeAlias() throws Exception {
runTest("compiler/testData/codegen/box/fir/getOnNullableTypeAlias.kt");
}
@Test
@TestMetadata("implicitNothingInDelegate.kt")
public void testImplicitNothingInDelegate() throws Exception {
@@ -2632,6 +2632,12 @@ public class IrTextTestGenerated extends AbstractIrTextTest {
runTest("compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt");
}
@Test
@TestMetadata("reflectGetOnNullableTypeAlias.kt")
public void testReflectGetOnNullableTypeAlias() throws Exception {
runTest("compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.kt");
}
@Test
@TestMetadata("SafeLetWithReturn.kt")
public void testSafeLetWithReturn() throws Exception {