mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
19 lines
509 B
Java
19 lines
509 B
Java
import java.util.function.Predicate;
|
|
|
|
class B<T> {
|
|
public static <E> B<E> from( Iterable<? extends E> iterable) {
|
|
return null;
|
|
}
|
|
|
|
void m(Iterable<? extends T> it, Predicate<? super T> p) {
|
|
<error descr="Incompatible types. Found: 'B<capture<? extends T>>', required: 'B<T>'">B<T> B = from(it).bar(not(p));</error>
|
|
}
|
|
|
|
B<T> bar(Predicate<? super T> p) {
|
|
return this;
|
|
}
|
|
|
|
public static <N> Predicate<N> not(Predicate<? super N> c) {
|
|
return null;
|
|
}
|
|
} |