mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 21:44:49 +07:00
clear diamond inference errors when overload resolution fails
This commit is contained in:
+14
@@ -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) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user