mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-11-13 00:33:59 +07:00
lambda: highlight containing method ambiguity on method name: this avoids lots of lines of lambda body to be highlighted and it would show errors even if lambda body contains errors actually caused by the ambiguity on the parent level (IDEA-141580)
This commit is contained in:
1 parent
1b3a089335
commit
30a12275a2
22 files changed
+57
-55
No files matched your search
+4
-4
@@ -14,7 +14,7 @@ class Foo {
|
||||
void foo(K k){}
|
||||
|
||||
void bar() {
|
||||
foo((p) -> {
|
||||
<error descr="Ambiguous method call: both 'Foo.foo(I)' and 'Foo.foo(K)' match">foo</error>((p) -> {
|
||||
System.out.println<error descr="Cannot resolve method 'println(<lambda parameter>)'">(p)</error>;
|
||||
});
|
||||
|
||||
@@ -26,9 +26,9 @@ class Foo {
|
||||
System.out.println(s);
|
||||
});
|
||||
|
||||
foo<error descr="Cannot resolve method 'foo(<lambda expression>)'">((String p, String k) -> {
|
||||
<error descr="Cannot resolve method 'foo(<lambda expression>)'">foo</error>((String p, String k) -> {
|
||||
System.out.println(p);
|
||||
})</error>;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ class WithTypeParams {
|
||||
System.out.println(p);
|
||||
});
|
||||
|
||||
foo<error descr="Cannot resolve method 'foo(<lambda expression>)'">((int k) -> {System.out.println(k);})</error>;
|
||||
<error descr="Cannot resolve method 'foo(<lambda expression>)'">foo</error>((int k) -> {System.out.println(k);});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user