mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
lambda: correct message when lambda params are incompatible (IDEA-91016)
This commit is contained in:
@@ -11,8 +11,8 @@ class Foo {
|
||||
};
|
||||
|
||||
void bazz() {
|
||||
bar<error descr="'bar(I)' in 'Foo' cannot be applied to '(<lambda expression>)'">((String s) -> {
|
||||
System.out.println(s);})</error>;
|
||||
bar((<error descr="Incompatible parameter types in lambda expression">String s</error>) -> {
|
||||
System.out.println(s);});
|
||||
bar((int i) -> {System.out.println(i);});
|
||||
}
|
||||
void bar(I i){}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class XXX {
|
||||
Runnable bar() {
|
||||
<error descr="Incompatible types. Found: '<lambda expression>', required: 'java.lang.Runnable'">return (o)->{
|
||||
return <error descr="Incompatible parameter types in lambda expression">(o)->{
|
||||
System.out.println();
|
||||
};</error>
|
||||
}</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user