Files
kotlin-fork/compiler/testData/ir/irText/singletons/enumEntry.fir.kt.txt
T
Dmitriy Novozhilov 3d6ec0ec75 [FIR2IR] Automatically store IR declaration in its parent upon creation
Previously, creating a declaration with Fir2IrCallableDeclarationsGenerator/
  Fir2IrClassifiersGenerator didn't guarantee that this declaration will
  be actually added to the list of parent class/file declarations, which
  lead to situations when FIR2IR created some declarations in the air
  (mostly fake-overrides)
2023-10-17 12:46:27 +00:00

43 lines
702 B
Kotlin
Vendored

open enum class Z : Enum<Z> {
private constructor() /* primary */ {
super/*Enum*/<Z>()
/* <init>() */
}
ENTRY = ENTRY()
private enum entry class ENTRY : Z {
private constructor() /* primary */ {
super/*Z*/()
/* <init>() */
}
fun test() {
}
local inner class A {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
fun test2() {
<this>.test()
}
}
}
fun values(): Array<Z> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): Z /* Synthetic body for ENUM_VALUEOF */
val entries: EnumEntries<Z>
get(): EnumEntries<Z> /* Synthetic body for ENUM_ENTRIES */
}