Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/annotations/wrongPlace.java
2012-10-20 11:22:05 +02:00

14 lines
241 B
Java

@interface Anno {
Anno[] nested() default {};
}
abstract class C {
abstract void f();
void wrong() {
<error descr="Annotations are not allowed here">@Anno</error> f();
}
@Anno(nested = {@Anno, @Anno})
void notWrong() { }
}