mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
inference: incorporation with capture and fresh variables (IDEA-145566)
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
|
||||
class Test {
|
||||
void foo(Function<String, List<String>> f) {
|
||||
DS<List<String>> ds = flatMap(f);
|
||||
}
|
||||
|
||||
|
||||
public <R> Operator<R, ?> flatMap(Function<String, R> flatMapper) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class Operator<OUT, O extends Operator<OUT, O>> extends DS<OUT> {}
|
||||
class DS<OUT> {}
|
||||
Reference in New Issue
Block a user