Files
kotlin-fork/compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.kt.txt
T
2021-09-23 06:59:33 +00:00

51 lines
715 B
Plaintext
Vendored

open annotation class A1 : Annotation {
constructor(vararg xs: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
val xs: IntArray
field = xs
get
}
open annotation class A2 : Annotation {
constructor(vararg xs: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
val xs: Array<out String>
field = xs
get
}
open annotation class AA : Annotation {
constructor(vararg xs: A1) /* primary */ {
super/*Any*/()
/* <init>() */
}
val xs: Array<out A1>
field = xs
get
}
@A1(xs = [1, 2, 3])
@A2(xs = ["a", "b", "c"])
@AA(xs = [A1(xs = [4]), A1(xs = [5]), A1(xs = [6])])
fun test1() {
}
@A1(xs = [])
@A2(xs = [])
@AA(xs = [])
fun test2() {
}