mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-01 04:20:56 +07:00
14 lines
241 B
Java
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() { }
|
|
} |