mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
ambiguity (IDEA-123352)
This commit is contained in:
+17
@@ -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>());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user