mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
java Retention + Repeatable = kotlin.annotation.annotation (but java Repeatable is still intact), a few tests
This commit is contained in:
21
compiler/testData/diagnostics/testsWithJava8/annotations/javaRepeatableRetention.kt
vendored
Normal file
21
compiler/testData/diagnostics/testsWithJava8/annotations/javaRepeatableRetention.kt
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// FILE: RepeatableAnnotation.java
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Repeatable(RepeatableAnnotations.class)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
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