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

37 lines
585 B
Kotlin
Vendored

open annotation class TestAnnWithIntArray : Annotation {
val x: IntArray
field = x
get
constructor(x: IntArray) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
open annotation class TestAnnWithStringArray : Annotation {
val x: Array<String>
field = x
get
constructor(x: Array<String>) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
@TestAnnWithIntArray(x = [1, 2, 3])
@TestAnnWithStringArray(x = ["a", "b", "c"])
fun test1() {
}
@TestAnnWithIntArray(x = [4, 5, 6])
@TestAnnWithStringArray(x = ["d", "e", "f"])
fun test2() {
}