K1/K2: add Enum.entries unconditionally and filter them out in tower
Before this commit, we added Enum.entries only in case when LanguageFeature.EnumEntries was ON (with an exception in K1/Java case). In this commit we add Enum.entries unconditionally, and in case the language feature is OFF we filter them out during tower resolve.
This commit is contained in:
@@ -5,6 +5,9 @@ public final enum class Test : R|kotlin/Enum<test/Test>| {
|
||||
public final static fun values(): R|kotlin/Array<test/Test>| {
|
||||
}
|
||||
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<test/Test>|
|
||||
public get(): R|kotlin/enums/EnumEntries<test/Test>|
|
||||
|
||||
private constructor(a: R|kotlin/Int|): R|test/Test|
|
||||
|
||||
public final static enum entry A: R|test/Test|
|
||||
|
||||
Reference in New Issue
Block a user