diamonds: constructor varargs (IDEA-131918)

This commit is contained in:
Anna Kozlova
2014-10-29 14:03:03 +01:00
parent 6a08e626c6
commit f0fc85674e
2 changed files with 14 additions and 0 deletions

View File

@@ -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);
}
}