IDEA-119396 (be picky about unfinished annotated new array expressions)

This commit is contained in:
Roman Shevchenko
2014-02-19 19:30:35 +01:00
parent ead0734f08
commit 9495ef2667
6 changed files with 60 additions and 20 deletions

View File

@@ -104,7 +104,6 @@ class Outer {
void arrays(String @TA ... docs) {
@TA String @TA [] @TA [] docs1 = new @TA String @TA [2] @TA [2];
@TA int @TA [] ints = new @TA int @TA [2];
new Boolean @TA [2] <error descr="Annotations are not allowed here">@TA</error>;
}
int @TA [] mixedArrays @TA [] <error descr="Annotations are not allowed here">@TA</error> = new int[0][0];