show error for type arguments on array creation (IDEA-189766)

This commit is contained in:
Anna.Kozlova
2018-04-09 15:07:49 +02:00
parent 90b3b2f0aa
commit aad9fe81c2
4 changed files with 13 additions and 0 deletions
@@ -149,4 +149,10 @@ class Outer1<E> {
final Inner[] i = new Inner[10];
static class Inner {
}
}
class TypeArgOnNewArray {
{
final int[] ints = <error descr="Cannot create array with type arguments">new <String>int[10]</error>;
}
}