Generate IR for annotation class constructors.
This commit is contained in:
+14
-5
@@ -1,13 +1,23 @@
|
||||
annotation class TestAnnWithIntArray : Annotation {
|
||||
constructor(x: IntArray) /* primary */
|
||||
open annotation class TestAnnWithIntArray : Annotation {
|
||||
constructor(x: IntArray) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val x: IntArray
|
||||
field = x
|
||||
get
|
||||
|
||||
}
|
||||
|
||||
annotation class TestAnnWithStringArray : Annotation {
|
||||
constructor(x: Array<String>) /* primary */
|
||||
open annotation class TestAnnWithStringArray : Annotation {
|
||||
constructor(x: Array<String>) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val x: Array<String>
|
||||
field = x
|
||||
get
|
||||
@@ -23,4 +33,3 @@ fun test1() {
|
||||
@TestAnnWithStringArray(x = ["d", "e", "f"])
|
||||
fun test2() {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user