mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
overload resolution: don't prefer generic to raw substitution (IDEA-149289)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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, 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);
|
||||
}
|
||||
Reference in New Issue
Block a user