Files
kotlin-fork/compiler/testData/codegen/box/statics/enumWithInheritedStaticField.kt
T
Alexander Udalov 1bc299508a 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
2023-03-22 12:34:05 +00:00

14 lines
185 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
// FILE: E.java
interface I {
String result = "OK";
}
public enum E implements I {}
// FILE: box.kt
fun box(): String = E.result