mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-18 16:17:00 +07:00
Fix false annotation highlighting
This commit is contained in:
@@ -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() { }
|
||||
}
|
||||
Reference in New Issue
Block a user