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:
committed by
Space Team
parent
c046bedfc2
commit
1bc299508a
@@ -0,0 +1,13 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user