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

45 lines
565 B
Kotlin
Vendored

open annotation class A1 : Annotation {
val x: Int
field = x
get
constructor(x: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
open annotation class A2 : Annotation {
val a: A1
field = a
get
constructor(a: A1) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
open annotation class AA : Annotation {
val xs: Array<A1>
field = xs
get
constructor(xs: Array<A1>) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
@A2(a = A1(x = 42))
@AA(xs = [A1(x = 1), A1(x = 2)])
fun test() {
}