Fir2Ir: do not skip building static fake overrides for enums

Fake overrides are needed at least for static fields inherited from Java
interfaces. Not static methods though, because they are not inherited.

 #KT-57302 Fixed
This commit is contained in:
Alexander Udalov
2023-03-20 23:49:46 +01:00
committed by Space Team
parent c046bedfc2
commit 1bc299508a
8 changed files with 48 additions and 1 deletions
@@ -37969,6 +37969,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/statics/anonymousInitializerInClassObject.kt");
}
@TestMetadata("enumWithInheritedStaticField.kt")
public void testEnumWithInheritedStaticField() throws Exception {
runTest("compiler/testData/codegen/box/statics/enumWithInheritedStaticField.kt");
}
@TestMetadata("fields.kt")
public void testFields() throws Exception {
runTest("compiler/testData/codegen/box/statics/fields.kt");