Files
kotlin-fork/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

41 lines
734 B
Plaintext
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 */
}
fun box(): String {
return X.B.<get-value>().invoke()
}