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
+3
@@ -11,6 +11,9 @@ FILE: annotationArgumentMustBeEnumConst.kt
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|TestEnum| {
|
||||
}
|
||||
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<TestEnum>|
|
||||
public get(): R|kotlin/enums/EnumEntries<TestEnum>|
|
||||
|
||||
}
|
||||
public final annotation class Ann : R|kotlin/Annotation| {
|
||||
public constructor(vararg a: R|kotlin/Array<out TestEnum>|): R|Ann| {
|
||||
|
||||
Reference in New Issue
Block a user