Files
kotlin-fork/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.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

72 lines
1.3 KiB
Kotlin
Vendored

open enum class MyEnum : Enum<MyEnum> {
private constructor() /* primary */ {
super/*Enum*/<MyEnum>()
/* <init>() */
}
Z = Z()
private enum entry class Z : MyEnum {
private constructor() /* primary */ {
super/*MyEnum*/() /*~> Unit */
/* <init>() */
}
var counter: Int
field = 0
get
set
fun foo() {
}
fun bar() {
<this>.<set-counter>(<set-?> = 1)
<this>.foo()
}
val aLambda: Function0<Unit>
field = local fun <anonymous>() {
MyEnum.Z.<set-counter>(<set-?> = 1)
MyEnum.Z.foo()
}
get
val anObject: Any
field = { // BLOCK
local class <no name provided> {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
init {
MyEnum.Z.<set-counter>(<set-?> = 1)
MyEnum.Z.foo()
}
fun test() {
MyEnum.Z.<set-counter>(<set-?> = 1)
MyEnum.Z.foo()
}
}
<no name provided>()
}
get
}
fun values(): Array<MyEnum> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): MyEnum /* Synthetic body for ENUM_VALUEOF */
val entries: EnumEntries<MyEnum>
get(): EnumEntries<MyEnum> /* Synthetic body for ENUM_ENTRIES */
}