FIR: Fix case when smartcast receiver is used for call to private method

^KT-54432 Fixed
This commit is contained in:
Denis.Zharkov
2022-05-27 16:07:38 +03:00
committed by teamcity
parent ccc32b4e3b
commit c1904004c4
20 changed files with 306 additions and 27 deletions
@@ -35902,6 +35902,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smartCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("avoidSmartCastToDerivedForPrivate.kt")
public void testAvoidSmartCastToDerivedForPrivate() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/avoidSmartCastToDerivedForPrivate.kt");
}
@Test
@TestMetadata("complexExplicitReceiver.kt")
public void testComplexExplicitReceiver() throws Exception {
@@ -36004,6 +36010,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/smartCasts/kt44942.kt");
}
@Test
@TestMetadata("kt52432.kt")
public void testKt52432() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt52432.kt");
}
@Test
@TestMetadata("lambdaArgumentWithoutType.kt")
public void testLambdaArgumentWithoutType() throws Exception {