IDEA-94209 Completion in parameter list at array parameter position should insert braces after new Type

This commit is contained in:
peter
2012-11-10 23:05:30 +01:00
parent d92ec6bf10
commit 3f3c212594
11 changed files with 26 additions and 17 deletions
@@ -1,5 +1,5 @@
class Super {
void foo(String[] params, int... indices) {
foo(new String[<caret>], 0);
foo(new String[]{<caret>}, 0);
}
}
@@ -4,6 +4,6 @@ class MyException extends RuntimeException {
class XXX {
{
throw new MyException(new String[<caret>]);
throw new MyException(new String[]{<caret>});
}
}
@@ -2,6 +2,6 @@ class List<T> {}
class C {
void foo () {
List<? extends String>[] array = new List[<caret>];
List<? extends String>[] array = new List[]{<caret>};
}
}
@@ -2,6 +2,6 @@ class A {
<T> void foo(T[] ts) {}
{
foo(new Object[]);
foo(new Object[]{<caret>});
}
}