mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
java Retention + Repeatable = kotlin.annotation.annotation (but java Repeatable is still intact), a few tests
This commit is contained in:
19
compiler/testData/diagnostics/testsWithJava8/annotations/javaRepeatable.kt
vendored
Normal file
19
compiler/testData/diagnostics/testsWithJava8/annotations/javaRepeatable.kt
vendored
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user