[FIR] Use lower bound of supertype in findClassRepresentation for intersection types

This commit is contained in:
Dmitriy Novozhilov
2023-10-10 12:55:53 +03:00
committed by Space Team
parent c3f3a4192c
commit 84f41b7d68
9 changed files with 91 additions and 3 deletions
@@ -18135,6 +18135,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/fir/incorrectBytecodeWithEnhancedNullability.kt");
}
@Test
@TestMetadata("intersectionWithCapturedTypeWithRawUpperBound.kt")
public void testIntersectionWithCapturedTypeWithRawUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/fir/intersectionWithCapturedTypeWithRawUpperBound.kt");
}
@Test
@TestMetadata("IrBuiltIns.kt")
public void testIrBuiltIns() throws Exception {
@@ -19047,6 +19047,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/fir/internalPotentialOverride.kt");
}
@Test
@TestMetadata("intersectionWithCapturedTypeWithRawUpperBound.kt")
public void testIntersectionWithCapturedTypeWithRawUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/fir/intersectionWithCapturedTypeWithRawUpperBound.kt");
}
@Test
@TestMetadata("IrBuiltIns.kt")
public void testIrBuiltIns() throws Exception {
@@ -19047,6 +19047,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
runTest("compiler/testData/codegen/box/fir/internalPotentialOverride.kt");
}
@Test
@TestMetadata("intersectionWithCapturedTypeWithRawUpperBound.kt")
public void testIntersectionWithCapturedTypeWithRawUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/fir/intersectionWithCapturedTypeWithRawUpperBound.kt");
}
@Test
@TestMetadata("IrBuiltIns.kt")
public void testIrBuiltIns() throws Exception {