inference: restore probably partial raw inference as this way expected raw types are preserved and Objects won't be inferred in place where raw types were expected

This commit is contained in:
Anna.Kozlova
2016-03-30 12:10:00 +02:00
parent 40a35baa42
commit cc72bd0319
6 changed files with 37 additions and 14 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<Object>, List<?>)' match">(get(), list)</error>;
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();