e6f4d6e6fa
^KT-65406
45 lines
565 B
Kotlin
Vendored
45 lines
565 B
Kotlin
Vendored
open annotation class A1 : Annotation {
|
|
val x: Int
|
|
field = x
|
|
get
|
|
|
|
constructor(x: Int) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
open annotation class A2 : Annotation {
|
|
val a: A1
|
|
field = a
|
|
get
|
|
|
|
constructor(a: A1) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
open annotation class AA : Annotation {
|
|
val xs: Array<A1>
|
|
field = xs
|
|
get
|
|
|
|
constructor(xs: Array<A1>) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@A2(a = A1(x = 42))
|
|
@AA(xs = [A1(x = 1), A1(x = 2)])
|
|
fun test() {
|
|
}
|
|
|