mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
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:
+12
@@ -0,0 +1,12 @@
|
||||
|
||||
class Test {
|
||||
|
||||
{
|
||||
Foo<Integer> f = new Foo<>();
|
||||
}
|
||||
}
|
||||
|
||||
class Foo<T> {
|
||||
public Foo(String description) {}
|
||||
public Foo(int size) {}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
|
||||
class Test {
|
||||
|
||||
{
|
||||
Foo<Integer> f = new <caret>
|
||||
}
|
||||
}
|
||||
|
||||
class Foo<T> {
|
||||
public Foo(String description) {}
|
||||
public Foo(int size) {}
|
||||
}
|
||||
Reference in New Issue
Block a user