[IrActualizer] Don't actualize expect types

This was never semantically correct, but was not important
before KT-63644, as they were immediately dropped after that anyway.

After KT-63644, they were used to compute fake overrides inside them,
which were later matched against actual class, which can
produce false-positive matching errors.

^KT-64835
This commit is contained in:
Pavel Kunyavskiy
2024-01-09 10:23:34 +01:00
committed by Space Team
parent cf3672314a
commit 9374cacdd6
12 changed files with 88 additions and 0 deletions
@@ -27829,6 +27829,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/multiplatform/k2/anonymousObjectAndSpecificImplementationInDeserializedIr.kt");
}
@Test
@TestMetadata("covariantOverrideInActual.kt")
public void testCovariantOverrideInActual() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/covariantOverrideInActual.kt");
}
@Test
@TestMetadata("dataClassInCommonAndPlatform.kt")
public void testDataClassInCommonAndPlatform() throws Exception {
@@ -28461,6 +28461,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/multiplatform/k2/anonymousObjectAndSpecificImplementationInDeserializedIr.kt");
}
@Test
@TestMetadata("covariantOverrideInActual.kt")
public void testCovariantOverrideInActual() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/covariantOverrideInActual.kt");
}
@Test
@TestMetadata("dataClassInCommonAndPlatform.kt")
public void testDataClassInCommonAndPlatform() throws Exception {