mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
inference on incomplete code (EA-90195 - AIOOBE: PsiTypesUtil.getParameterType)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user