JVM IR: rename private fields for properties with same name

This is needed to get rid of the code that appends "$companion" to
properties moved from companion, because it caused inconsistencies in
the ABI and in JVM signatures stored in the metadata
This commit is contained in:
Alexander Udalov
2019-02-08 16:13:39 +01:00
parent b4571fd548
commit 4487c7a988
9 changed files with 220 additions and 15 deletions
@@ -10630,6 +10630,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
public void testGenericPropertyWithItself() throws Exception {
runTest("compiler/testData/codegen/box/fieldRename/genericPropertyWithItself.kt");
}
@TestMetadata("jvmFieldNoClash1.kt")
public void testJvmFieldNoClash1() throws Exception {
runTest("compiler/testData/codegen/box/fieldRename/jvmFieldNoClash1.kt");
}
@TestMetadata("jvmFieldNoClash2.kt")
public void testJvmFieldNoClash2() throws Exception {
runTest("compiler/testData/codegen/box/fieldRename/jvmFieldNoClash2.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/finally")