mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
show error for type arguments on array creation (IDEA-189766)
This commit is contained in:
+6
@@ -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>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user