inline: substitute ellipsis type before array construction (IDEA-65897)

This commit is contained in:
anna
2011-02-27 18:20:25 +01:00
parent 70308b234e
commit e68c92c49f
4 changed files with 21 additions and 2 deletions
@@ -0,0 +1,9 @@
class Test {
<T> void doSmth(T... ps) {
System.out.println(ps);
}
void m() {
doS<caret>mth(1, 2, 3);
}
}
@@ -0,0 +1,6 @@
class Test {
void m() {
System.out.println(new Integer[]{1, 2, 3});
}
}