IDEA-117827 Invalid "ambiguous method call" error

This commit is contained in:
Anna Kozlova
2013-12-09 17:01:48 +04:00
parent d47b6d123e
commit b055f12e86
3 changed files with 44 additions and 16 deletions
@@ -0,0 +1,16 @@
import java.util.Collection;
import java.util.List;
public class Testsss {
public <TA, CA extends Iterable<TA>> void that(Iterable<TA> target) {}
public <T, C extends Collection<T>> void that(Collection<T> target) {}
void foo(ImmutableList<String> l) {
that( l);
}
interface ImmutableList<T> extends List<T> {}
}