mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
calculate target type in the same way for statement/expressions lambdas
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Function;
|
||||
|
||||
class SameCalls<ST> {
|
||||
<B> List<B> bar(B a) {return null;}
|
||||
<R> Optional<R> foo(Function<String, Optional<R>> computable) {return null;}
|
||||
|
||||
List<String> ff(SameCalls<String> sc){
|
||||
return sc.foo((x) -> {
|
||||
return Optional.of(bar(x));
|
||||
}).get();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user