mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
fix code to compile under java 11 as well
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user