JVM IR: don't rename fake overrides for fields
In case derived class has a field with the same name as the base class, RenameFieldsLowering previously tried to rename one of the fields by adding the "...$1" suffix, which led to NoSuchFieldError.
This commit is contained in:
+5
@@ -15764,6 +15764,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/jvmField/checkNoAccessors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("clashWithJavaSuperClassField.kt")
|
||||
public void testClashWithJavaSuperClassField() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jvmField/clashWithJavaSuperClassField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classFieldReference.kt")
|
||||
public void testClassFieldReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jvmField/classFieldReference.kt");
|
||||
|
||||
Reference in New Issue
Block a user