Highlight misplaced reference parameter lists

This commit is contained in:
Roman Shevchenko
2012-09-11 19:31:55 +04:00
parent 2092fb60b4
commit 4cbe87de02
6 changed files with 102 additions and 57 deletions
@@ -0,0 +1,10 @@
import java.util.*;
class C {
static final List EMPTY = new ArrayList(0);
void m() {
List<String> list = C.<error descr="Reference parameters are not allowed here"><String></error>EMPTY;
System.out.println(list);
}
}