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,21 +1,36 @@
annotation class A1 : Annotation {
constructor(x: Int) /* primary */
open annotation class A1 : Annotation {
constructor(x: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: Int
field = x
get
}
annotation class A2 : Annotation {
constructor(a: A1) /* primary */
open annotation class A2 : Annotation {
constructor(a: A1) /* primary */ {
super/*Any*/()
/* <init>() */
}
val a: A1
field = a
get
}
annotation class AA : Annotation {
constructor(xs: Array<A1>) /* primary */
open annotation class AA : Annotation {
constructor(xs: Array<A1>) /* primary */ {
super/*Any*/()
/* <init>() */
}
val xs: Array<A1>
field = xs
get
@@ -26,4 +41,3 @@ annotation class AA : Annotation {
@AA(xs = [A1(x = 1), A1(x = 2)])
fun test() {
}