Generate IR for annotation class constructors.

This commit is contained in:
Pavel Kunyavskiy
2021-09-14 19:09:12 +03:00
committed by Space
parent 773c82ae48
commit a40022efcd
100 changed files with 743 additions and 244 deletions
@@ -1,32 +1,51 @@
annotation class Test1 : Annotation {
constructor(x: Int) /* primary */
open annotation class Test1 : Annotation {
constructor(x: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: Int
field = x
get
}
annotation class Test2 : Annotation {
constructor(x: Int = 0) /* primary */
open annotation class Test2 : Annotation {
constructor(x: Int = 0) /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: Int
field = x
get
}
annotation class Test3 : Annotation {
constructor(x: Test1) /* primary */
open annotation class Test3 : Annotation {
constructor(x: Test1) /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: Test1
field = x
get
}
annotation class Test4 : Annotation {
constructor(vararg xs: Int) /* primary */
open annotation class Test4 : Annotation {
constructor(vararg xs: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
val xs: IntArray
field = xs
get
}