mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-07 05:40:23 +07:00
16 lines
335 B
Java
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{} |