FIR: Fix case when smartcast receiver is used for call to private method
^KT-54432 Fixed
This commit is contained in:
Generated
+18
@@ -33592,6 +33592,24 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/visibility/innerNestedAndAnonymousClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisiblePrivateThroughSubClass.kt")
|
||||
public void testInvisiblePrivateThroughSubClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/visibility/invisiblePrivateThroughSubClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisiblePrivateThroughSubClassDoubleSmartCast.kt")
|
||||
public void testInvisiblePrivateThroughSubClassDoubleSmartCast() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/visibility/invisiblePrivateThroughSubClassDoubleSmartCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisiblePrivateThroughSubClassSmartCast.kt")
|
||||
public void testInvisiblePrivateThroughSubClassSmartCast() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/visibility/invisiblePrivateThroughSubClassSmartCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisibleSetterOfJavaClass.kt")
|
||||
public void testInvisibleSetterOfJavaClass() throws Exception {
|
||||
|
||||
+12
@@ -45095,6 +45095,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smartCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 {
|
||||
@@ -45215,6 +45221,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/kt48163_smartCastToThrowable.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
@@ -45671,6 +45671,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smartCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_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 {
|
||||
@@ -45791,6 +45797,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/smartCasts/kt48163_smartCastToThrowable.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 {
|
||||
|
||||
Reference in New Issue
Block a user