[FIR2IR] Don't generate fake overrides for clashing synthetic properties
If a synthetic prop clashes with a real property (e.g. @JvmField property from parent Kotlin class), don't generate fake override for the synthetic property. This fixes a CONFLICTING_INHERITED_JVM_DECLARATIONS error in a mixed hierarchy. ^KT-56538 Fixed
This commit is contained in:
committed by
Space Team
parent
d84490dcfa
commit
7f8dc56d36
+6
@@ -27585,6 +27585,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/superCallOfPrintStackTrace.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticPropClashingWithJvmField.kt")
|
||||
public void testSyntheticPropClashingWithJvmField() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/syntheticPropClashingWithJvmField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unresolvedJavaClassInDifferentFile.kt")
|
||||
public void testUnresolvedJavaClassInDifferentFile() throws Exception {
|
||||
|
||||
+6
@@ -28827,6 +28827,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/javaInterop/superCallOfPrintStackTrace.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticPropClashingWithJvmField.kt")
|
||||
public void testSyntheticPropClashingWithJvmField() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/syntheticPropClashingWithJvmField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unresolvedJavaClassInDifferentFile.kt")
|
||||
public void testUnresolvedJavaClassInDifferentFile() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user