diamonds: constructor varargs (IDEA-131918)

This commit is contained in:
Anna Kozlova committed 2014-10-29 14:21:11 +01:00
1 parent 6a08e626c6
commit f0fc85674e
2 files changed
+14

No files matched your search

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