clear diamond inference errors when overload resolution fails

This commit is contained in:
Anna.Kozlova
2016-04-28 11:39:38 +02:00
parent bebf4975e6
commit f36501444c
5 changed files with 104 additions and 56 deletions
@@ -0,0 +1,14 @@
import java.util.Collection;
class Test {
void m(StringBuilder builder){
builder.append(new Foo<>((Collection)null));
}
static class Foo<T> {
public Foo(Collection<? extends T> c) {}
public Foo(Foo<T> t) {}
}
}