completion for <>: overloaded constructors (IDEA-177256)

provide arguments compatible with the first constructor to reduce cases where diamonds can't be applicable
This commit is contained in:
Anna Kozlova
2017-08-19 13:58:27 +02:00
parent 90148e6425
commit 50ca349572
4 changed files with 45 additions and 7 deletions
@@ -0,0 +1,12 @@
class Test {
{
Foo<Integer> f = new Foo<>();
}
}
class Foo<T> {
public Foo(String description) {}
public Foo(int size) {}
}
@@ -0,0 +1,12 @@
class Test {
{
Foo<Integer> f = new <caret>
}
}
class Foo<T> {
public Foo(String description) {}
public Foo(int size) {}
}