Handle Java base class field read properly in IR converters
For FE 1.0, we just change super qualifier symbol to base class, if it's possible. For FIR, we introduce using of super qualifier symbols for field accesses and repeat FE 1.0 behavior here. #KT-49507 Fixed
This commit is contained in:
+6
@@ -17347,6 +17347,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/fieldRename/genericPropertyWithItself.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldAndKotlinProperty.kt")
|
||||
public void testJavaFieldAndKotlinProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fieldRename/javaFieldAndKotlinProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmFieldNoClash1.kt")
|
||||
public void testJvmFieldNoClash1() throws Exception {
|
||||
|
||||
Generated
+6
@@ -1118,6 +1118,12 @@ public class IrTextTestGenerated extends AbstractIrTextTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ambiguousFieldAccess.kt")
|
||||
public void testAmbiguousFieldAccess() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/ambiguousFieldAccess.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("argumentMappedWithError.kt")
|
||||
public void testArgumentMappedWithError() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user