diff options
Diffstat (limited to 'java/java-tests/testData/psi/parser-full/annotationParsing/annotation/TypeAnnotations.java')
-rw-r--r-- | java/java-tests/testData/psi/parser-full/annotationParsing/annotation/TypeAnnotations.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/java-tests/testData/psi/parser-full/annotationParsing/annotation/TypeAnnotations.java b/java/java-tests/testData/psi/parser-full/annotationParsing/annotation/TypeAnnotations.java index a74d4d6bbfad..de61404de20d 100644 --- a/java/java-tests/testData/psi/parser-full/annotationParsing/annotation/TypeAnnotations.java +++ b/java/java-tests/testData/psi/parser-full/annotationParsing/annotation/TypeAnnotations.java @@ -47,6 +47,11 @@ class SpecSamples { try (@A Reader r = new @B FileReader("/dev/zero"); @A Writer w = new @B FileWriter("/dev/null")) { } } + interface TestClass { + <T> @Nullable List<T> test(); + <T> @Positive int test(T t); + } + // // 2. An annotation on a wildcard type argument appears before the wildcard ... // @@ -72,6 +77,7 @@ class SpecSamples { // @Immutable SpecSamples() { } + <T> @Immutable SpecSamples(T t) { } // // todo [r.sh] 5. It is permitted to explicitly declare the method receiver as the first formal parameter ... |