mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
Merge "diagnostic with Java 8" tests with general diagnostic tests
This commit is contained in:
20
compiler/testData/diagnostics/tests/annotations/javaRepeatableRetention.kt
vendored
Normal file
20
compiler/testData/diagnostics/tests/annotations/javaRepeatableRetention.kt
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// FULL_JDK
|
||||
// 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
|
||||
|
||||
// Error should be gone when Java 8 Target will be available
|
||||
@RepeatableAnnotation <!NON_SOURCE_REPEATED_ANNOTATION!>@RepeatableAnnotation<!> class My
|
||||
Reference in New Issue
Block a user