mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
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:
+17
@@ -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>);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user