annotations: check that modifier list corresponds to class modifier list when ignore list during process declarations (IDEA-160106)

This commit is contained in:
Anna Kozlova
2016-09-16 08:34:14 +03:00
parent 0d37cf70eb
commit a493ff0f1d
4 changed files with 18 additions and 2 deletions
@@ -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>
}