retrieve inference errors from containing calls as they themselves won't be highlighted as there are errors in arguments (IDEA-150123)

This commit is contained in:
Anna Kozlova
2016-01-22 14:29:01 +03:00
parent 5d70440851
commit f2a0fbd694
3 changed files with 42 additions and 2 deletions
@@ -0,0 +1,17 @@
import java.util.List;
import java.util.function.Function;
class Test {
boolean foo(String string) {
return true;
}
<K> List<K> bar(Function<K, Boolean> f) {
return null;
}
{
List<Integer> l = bar(k -> foo<error descr="'foo(java.lang.String)' in 'Test' cannot be applied to '(java.lang.Integer)'">(k)</error>);
}
}