inference on incomplete code (EA-90195 - AIOOBE: PsiTypesUtil.getParameterType)

This commit is contained in:
Anna.Kozlova
2016-10-20 14:07:51 +02:00
parent 357ee4e52f
commit 12554167e7
3 changed files with 27 additions and 2 deletions

View File

@@ -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) {}
}