inference: when unchecked conversion was applied, resolve variables against raw substitutor

This commit is contained in:
Anna Kozlova
2016-08-17 13:46:09 +03:00
parent 20f36c672b
commit 1bece25b95
6 changed files with 35 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ 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>;
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();