Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/annotations/wrongPlace.java
2012-10-23 18:07:12 +02:00

16 lines
335 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() { }
}
class B extends <error descr="Annotations are not allowed here">@Deprecated</error> Object{}