Files
kotlin-fork/compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.kt.txt
T
2020-11-26 00:14:03 +03:00

46 lines
491 B
Plaintext
Vendored

annotation class A1 : Annotation {
constructor(vararg xs: Int) /* primary */
val xs: IntArray
field = xs
get
}
annotation class A2 : Annotation {
constructor(vararg xs: String) /* primary */
val xs: Array<out String>
field = xs
get
}
annotation class AA : Annotation {
constructor(vararg xs: A1) /* primary */
val xs: Array<out A1>
field = xs
get
}
@A1(...)
@A2(...)
@AA(...)
fun test1() {
}
@A1(...)
@A2(...)
@AA(...)
fun test2() {
}