mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
Merge "diagnostic with Java 8" tests with general diagnostic tests
This commit is contained in:
19
compiler/testData/diagnostics/tests/annotations/javaRepeatable.kt
vendored
Normal file
19
compiler/testData/diagnostics/tests/annotations/javaRepeatable.kt
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// FULL_JDK
|
||||
// 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
|
||||
|
||||
// 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