mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-02 05:50:53 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 4449ffc2458eeb73fa296453f6963a6eeed28a76
23 lines
511 B
Java
23 lines
511 B
Java
|
|
import java.util.List;
|
|
import java.util.function.Function;
|
|
|
|
|
|
interface Foo<T> {
|
|
|
|
<R> Foo<R> map(Function<T, R> mapper);
|
|
|
|
Foo<T> onClose();
|
|
}
|
|
|
|
class Bar {
|
|
Foo<List<String>> transform(final Foo<? extends String> foo) {
|
|
return foo
|
|
.map(v2 -> tuple(v2))
|
|
.<error descr="Incompatible types. Found: 'Foo<? extends java.util.List<? extends java.lang.String>>', required: 'Foo<java.util.List<java.lang.String>>'">onClose</error>();
|
|
}
|
|
|
|
static <T2> List<T2> tuple(T2 v2) {
|
|
return null;
|
|
}
|
|
} |