ambiguity (IDEA-123352)

This commit is contained in:
Anna Kozlova
2014-04-03 17:15:53 +02:00
parent 9b1c967f87
commit 1daf8f50df
5 changed files with 51 additions and 8 deletions
@@ -0,0 +1,17 @@
import java.util.*;
class Test {
class Predicate<T> {
<S extends T> boolean test(final Collection<T> src) {
return true;
}
<S extends T> boolean test(final Iterable<T> iterable) {
return false;
}
}
public void testPredicate() {
final Predicate<Integer> predicate = new Predicate<>();
predicate.test(new ArrayList<Integer>());
}
}