Fix false annotation highlighting

This commit is contained in:
Roman Shevchenko
2012-10-20 11:22:05 +02:00
parent 2ddf489b92
commit 56a32c93a2
2 changed files with 24 additions and 4 deletions
@@ -1,9 +1,14 @@
@interface Anno { }
@interface Anno {
Anno[] nested() default {};
}
abstract class C {
abstract void f();
void m() {
void wrong() {
<error descr="Annotations are not allowed here">@Anno</error> f();
}
@Anno(nested = {@Anno, @Anno})
void notWrong() { }
}