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:
Vendored
+1
@@ -63,6 +63,7 @@ public final enum class Foo3 : kotlin.Enum<Foo3> {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ val entries: kotlin.enums.EnumEntries<Foo3>
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): Foo3
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<Foo3>
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -60,6 +60,7 @@ public final enum class Foo3 : kotlin.Enum<Foo3> {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ val entries: kotlin.enums.EnumEntries<Foo3>
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): Foo3
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<Foo3>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user