Files
Tagir Valeev c449c341b7 [java-highlighting] test-data adjusted (mostly anchors) after recent updates
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 1e1b77009dc78de49c7cc5c44d4704937397bb23
2025-01-29 11:35:30 +00:00

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) {
B<T> B = from(it).<error descr="Incompatible types. Found: 'B<capture<? extends T>>', required: 'B<T>'">bar</error>(not(p));
}
B<T> bar(Predicate<? super T> p) {
return this;
}
public static <N> Predicate<N> not(Predicate<? super N> c) {
return null;
}
}