mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
annotations: check error elements after annotation to rise annotation not expected here instead of some unpredictable warnings (IDEA-160106)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class Dummy {
|
||||
|
||||
public @interface Debug {
|
||||
String value() default "[no comment]";
|
||||
}
|
||||
|
||||
private static final class Constants {
|
||||
private static final String INPUT = "Input";
|
||||
}
|
||||
|
||||
<error descr="Annotations are not allowed here">@Dummy.Debug(Constants.INPUT)</error><EOLError descr="Identifier or type expected"></EOLError>
|
||||
}
|
||||
Reference in New Issue
Block a user