mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 03:20:56 +07:00
15 lines
407 B
Java
15 lines
407 B
Java
import java.util.List;
|
|
import java.util.Set;
|
|
|
|
abstract class Test {
|
|
|
|
public void foo(List list) {
|
|
set<error descr="Ambiguous method call: both 'Test.set(Set<List>, List)' and 'Test.set(Set<Object>, List<?>)' match">(get(), list)</error>;
|
|
}
|
|
|
|
abstract <Y> Set<Y> get();
|
|
|
|
abstract <Y, X extends Y> void set(Set<Y> set, X x);
|
|
abstract <Y> void set(Set<Y> set, List<? extends Y> l);
|
|
}
|