Files
kotlin-fork/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.kt.txt
T
2024-02-16 10:19:38 +00:00

49 lines
894 B
Kotlin
Vendored

open annotation class TestAnn : Annotation {
val x: String
field = x
get
constructor(x: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
open enum class TestEnum : Enum<TestEnum> {
@TestAnn(x = "ENTRY1")
ENTRY1 = TestEnum()
@TestAnn(x = "ENTRY2")
ENTRY2 = ENTRY2()
@TestAnn(x = "ENTRY2")
private enum entry class ENTRY2 : TestEnum {
val x: Int
field = 42
get
private constructor() /* primary */ {
super/*TestEnum*/() /*~> Unit */
/* <init>() */
}
}
private constructor() /* primary */ {
super/*Enum*/<TestEnum>()
/* <init>() */
}
fun valueOf(value: String): TestEnum /* Synthetic body for ENUM_VALUEOF */
fun values(): Array<TestEnum> /* Synthetic body for ENUM_VALUES */
val entries: EnumEntries<TestEnum>
get(): EnumEntries<TestEnum> /* Synthetic body for ENUM_ENTRIES */
}