mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 19:28:23 +07:00
incompatible parameter types in lambda expression message expanded (IDEA-134941)
This commit is contained in:
@@ -11,7 +11,7 @@ class Foo {
|
||||
};
|
||||
|
||||
void bazz() {
|
||||
bar((<error descr="Incompatible parameter types in lambda expression">String s</error>) -> {
|
||||
bar(<error descr="Incompatible parameter types in lambda expression: expected int but found String">(String s)</error> -> {
|
||||
System.out.println(s);});
|
||||
bar((int i) -> {System.out.println(i);});
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class XXX {
|
||||
Runnable bar() {
|
||||
return <error descr="Incompatible parameter types in lambda expression">(o)->{
|
||||
return <error descr="Incompatible parameter types in lambda expression: wrong number of parameters: expected 0 but found 1">(o)</error>->{
|
||||
System.out.println();
|
||||
}</error>;
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
class Test {
|
||||
{
|
||||
Comparable c = (<error descr="Incompatible parameter types in lambda expression">String o</error>)->{
|
||||
Comparable c = <error descr="Incompatible parameter types in lambda expression: expected Object but found String">(String o)</error>->{
|
||||
return 0;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user