Files
kotlin-fork/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/enum.fir.txt
T
Ilya Kirillov 8dab560d6e [LL FIR] fix status resolution of static enum members
Before, BODY_RESOLVE phase were used for them but status may be unresolved.
This caused CCE on accessing resolved status for such static enum members.

Now, those declarations are created with the status of owning enum as the status is taken from that class.
2022-11-16 19:44:18 +00:00

27 lines
954 B
Plaintext

FILE: enum.kt
public final [BODY_RESOLVE] enum class Enum : R|kotlin/Enum<Enum>| {
private [BODY_RESOLVE] constructor([BODY_RESOLVE] x: R|kotlin/Int|): R|Enum| {
super<R|kotlin/Enum<Enum>|>()
}
public final [BODY_RESOLVE] val x: R|kotlin/Int| = R|<local>/x|
public [BODY_RESOLVE] get(): R|kotlin/Int|
public final static [BODY_RESOLVE] enum entry A: R|Enum| = object : R|Enum| {
private [BODY_RESOLVE] constructor(): R|<anonymous>| {
super<R|Enum|>(Int(1))
}
}
public final static [BODY_RESOLVE] fun values(): R|kotlin/Array<Enum>| {
}
public final static [BODY_RESOLVE] fun valueOf([BODY_RESOLVE] value: R|kotlin/String|): R|Enum| {
}
public final static [BODY_RESOLVE] val entries: R|kotlin/enums/EnumEntries<Enum>|
public [BODY_RESOLVE] get(): R|kotlin/enums/EnumEntries<Enum>|
}