Files
kotlin-fork/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.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

41 lines
599 B
Kotlin
Vendored

enum class En : Enum<En> {
private constructor() /* primary */ {
super/*Enum*/<En>()
/* <init>() */
}
A = En()
B = En()
C = En()
D = En()
fun values(): Array<En> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): En /* Synthetic body for ENUM_VALUEOF */
val entries: EnumEntries<En>
get(): EnumEntries<En> /* Synthetic body for ENUM_ENTRIES */
}
open annotation class TestAnn : Annotation {
constructor(x: En) /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: En
field = x
get
}
@TestAnn(x = En.A)
fun test1() {
}