mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
method reference: use site substitutor if nothing else was inferred
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
class Base {
|
||||
|
||||
interface Seq<Eq> extends Iterable<Eq> {
|
||||
static <E> Seq<E> of(Iterable<? extends E> source) {
|
||||
return null;
|
||||
}
|
||||
|
||||
<R> Seq<R> map(Function<? super Eq, ? extends R> mapper);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Test3 extends Base {
|
||||
|
||||
void test4(Seq<List<String>> map) {
|
||||
Seq<Seq<String>> mapped = map.map(Seq::of);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user