FIR: Fix case when smartcast receiver is used for call to private method
^KT-54432 Fixed
This commit is contained in:
+12
@@ -32791,6 +32791,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smartCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, 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 {
|
||||
@@ -32893,6 +32899,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
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 {
|
||||
|
||||
+12
@@ -32893,6 +32893,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smartCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, 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 {
|
||||
@@ -32995,6 +33001,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
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 {
|
||||
|
||||
+10
@@ -29453,6 +29453,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smartCasts"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("avoidSmartCastToDerivedForPrivate.kt")
|
||||
public void testAvoidSmartCastToDerivedForPrivate() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/avoidSmartCastToDerivedForPrivate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("complexExplicitReceiver.kt")
|
||||
public void testComplexExplicitReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/complexExplicitReceiver.kt");
|
||||
@@ -29538,6 +29543,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/smartCasts/kt44942.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt52432.kt")
|
||||
public void testKt52432() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/kt52432.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaArgumentWithoutType.kt")
|
||||
public void testLambdaArgumentWithoutType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/lambdaArgumentWithoutType.kt");
|
||||
|
||||
Reference in New Issue
Block a user