mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
diamonds: constructor varargs (IDEA-131918)
This commit is contained in:
@@ -24,3 +24,12 @@ class A<T> {
|
||||
bar(s(get(), ""));
|
||||
}
|
||||
}
|
||||
|
||||
class B<T> {
|
||||
public B(T entity) {}
|
||||
public B(T entity, Integer... error){}
|
||||
|
||||
void foo(final Integer generalError){
|
||||
B value = new B<>("", generalError);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user