Correct highlighting of annotations in new expressions

This commit is contained in:
Roman Shevchenko
2013-03-13 13:26:19 +01:00
parent d36e33494b
commit 29f20c9421
5 changed files with 84 additions and 42 deletions

View File

@@ -102,9 +102,10 @@ class Outer {
void m(List<@TA ? extends Comparable<Object>> p) { }
void arrays(String @TA ... docs) {
//todo[r.sh]
//@TA String @TA [] @TA [] docs1 = new @TA String @TA [2] @TA [2];
//@TA int @TA [] ints = new @TA int @TA [2];
@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>;
new Boolean @<error descr="Duplicate annotation">TA</error> @<error descr="Duplicate annotation">TA</error> [42];
}
@TA Outer() { }