Files
kotlin-fork/compiler/testData/serialization/annotationArguments/annotation.kt
T
Alexander Udalov 63bfa004fd Introduce binary representation for annotations
Will be used where annotations can't be stored elsewhere: for example,
built-ins, JS, type annotations on JDK<8
2014-12-03 16:10:19 +03:00

15 lines
313 B
Kotlin

package test
annotation class Empty
annotation class JustAnnotation(val annotation: Empty)
annotation class AnnotationArray(val annotationArray: Array<JustAnnotation>)
JustAnnotation(Empty())
AnnotationArray(array())
class C1
AnnotationArray(array(JustAnnotation(Empty()), JustAnnotation(Empty())))
class C2