java Retention + Repeatable = kotlin.annotation.annotation (but java Repeatable is still intact), a few tests

This commit is contained in:
Mikhail Glukhikh
2015-07-28 19:47:38 +03:00
parent 10ba9c7264
commit 41500c916b
10 changed files with 181 additions and 18 deletions

View File

@@ -0,0 +1,19 @@
// FILE: RepeatableAnnotation.java
import java.lang.annotation.Repeatable
@Repeatable(RepeatableAnnotations.class)
public @interface RepeatableAnnotation {
}
// FILE: RepeatableAnnotations.java
public @interface RepeatableAnnotations {
RepeatableAnnotation[] value();
}
// FILE: RepeatableUse.kt
RepeatableAnnotation RepeatableAnnotation class My