mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
more specific inference: do not compare functional types if both methods were generic
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
|
||||
|
||||
class A {
|
||||
Collection<String> thrownInTryStatement = null;
|
||||
final Collection<String> thrownTypes = ContainerUtil.newHashSet( thrownInTryStatement);
|
||||
}
|
||||
|
||||
|
||||
class ContainerUtil extends ContainerUtilRt{
|
||||
public static <T> HashSet<T> newHashSet(Iterable<? extends T> iterable) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class ContainerUtilRt {
|
||||
public static <T> HashSet<T> newHashSet(Iterable<? extends T> iterable) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user