Files
kotlin-fork/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt.txt
T
Nikolay Lunyak bcfafc601e Add EnumEntries to minimal-stdlib-for-tests
This change allows to revert adding `WITH_STDLIB` directive
to tests which happened at `a9343aeb`.

Co-authored-by: Alexander Udalov <Alexander.Udalov@jetbrains.com>
2023-03-02 10:23:38 +00:00

44 lines
829 B
Kotlin
Vendored

abstract enum class X : Enum<X> {
private constructor() /* primary */ {
super/*Enum*/<X>()
/* <init>() */
}
B = B()
private enum entry class B : X {
private constructor() /* primary */ {
super/*X*/() /*~> Unit */
/* <init>() */
}
val value2: String
field = "OK"
get
override val value: Function0<String>
field = local fun <anonymous>(): String {
return X.B.<get-value2>()
}
override get
}
abstract val value: Function0<String>
abstract get
fun values(): Array<X> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): X /* Synthetic body for ENUM_VALUEOF */
val entries: EnumEntries<X>
get(): EnumEntries<X> /* Synthetic body for ENUM_ENTRIES */
}
fun box(): String {
return X.B.<get-value>().invoke()
}