Files
kotlin-fork/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.fir.kt.txt
T
Alexander Udalov 68b94b07b8 Fir2Ir: more precise calculation of enum class modality
Use the same condition as in the already existing `createIrEnumEntry`
function (and as in psi2ir): enum class should be final unless there's
an enum entry with any declaration other than its constructor.

 #KT-57216
2023-04-27 11:02:22 +00:00

23 lines
466 B
Kotlin
Vendored

enum class EE : Enum<EE> {
private constructor(myName: String = Companion.toString().lowercase()) /* primary */ {
super/*Enum*/<EE>()
/* <init>() */
}
val myName: String
field = myName
get
ENTRY = EE()
fun values(): Array<EE> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): EE /* Synthetic body for ENUM_VALUEOF */
val entries: EnumEntries<EE>
get(): EnumEntries<EE> /* Synthetic body for ENUM_ENTRIES */
}