mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 20:20:56 +07:00
18 lines
431 B
Java
18 lines
431 B
Java
import java.util.Optional;
|
|
import java.util.function.UnaryOperator;
|
|
|
|
class Test<T> {
|
|
private void example() {
|
|
update(x -> x.flatMap<error descr="'flatMap()' in 'Test' cannot be applied to '(<lambda expression>)'">(y -> getEmpty())</error>);
|
|
}
|
|
|
|
private <J> Test<J> flatMap() {
|
|
return null;
|
|
}
|
|
|
|
private <K> Optional<K> getEmpty() {
|
|
return Optional.empty();
|
|
}
|
|
|
|
void update(UnaryOperator<Test<Integer>> u) {}
|
|
} |