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:
@@ -13,6 +13,9 @@ FILE: enums.kt
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|Order| {
|
||||
}
|
||||
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<Order>|
|
||||
public get(): R|kotlin/enums/EnumEntries<Order>|
|
||||
|
||||
}
|
||||
public final enum class Planet : R|kotlin/Enum<Planet>| {
|
||||
private constructor(m: R|kotlin/Double|, r: R|kotlin/Double|): R|Planet| {
|
||||
@@ -79,4 +82,7 @@ FILE: enums.kt
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|Planet| {
|
||||
}
|
||||
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<Planet>|
|
||||
public get(): R|kotlin/enums/EnumEntries<Planet>|
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user