mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diamonds: constructor varargs (IDEA-131918)
This commit is contained in:
@@ -206,6 +206,11 @@ public class PsiDiamondTypeImpl extends PsiDiamondType {
|
||||
protected PsiClass getContainingClass(PsiMethod method) {
|
||||
return containingClass;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean acceptVarargs() {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
processor.setArgumentList(argumentList);
|
||||
|
||||
|
||||
@@ -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