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:
@@ -14,6 +14,9 @@ FILE: first.kt
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|first/First| {
|
||||
}
|
||||
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<first/First>|
|
||||
public get(): R|kotlin/enums/EnumEntries<first/First>|
|
||||
|
||||
}
|
||||
public final val THREE: R|first/First| = Q|first/First|.R|first/First.ONE|
|
||||
public get(): R|first/First|
|
||||
@@ -33,6 +36,9 @@ FILE: second.kt
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|second/Second| {
|
||||
}
|
||||
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<second/Second>|
|
||||
public get(): R|kotlin/enums/EnumEntries<second/Second>|
|
||||
|
||||
}
|
||||
public final val ONE: R|second/Second| = Q|second/Second|.R|second/Second.THREE|
|
||||
public get(): R|second/Second|
|
||||
|
||||
Reference in New Issue
Block a user