Generate IR for annotation class constructors.
This commit is contained in:
Vendored
+21
-7
@@ -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() {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user