blob: e94a4310e63a5c34048dba3881786d0e9822bd09 [file]
// FULL_JDK
// NO_CHECK_SOURCE_VS_BINARY
// If loaded from binaries, repeated annotations are placed in Anno.Container.
package test
@java.lang.annotation.Repeatable(Anno.Container::class)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.TYPEALIAS)
annotation class Anno(val code: Int) {
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.TYPEALIAS)
annotation class Container(val value: Array<Anno>)
}
@Anno(1)
@Anno(2)
class Z
@Anno(3)
@Anno(4)
fun f() {}
@Anno(5)
@Anno(6)
typealias S = String