mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-10 07:10:12 +07:00
[java-highlighting] Incompatible lambda parameter types moved
Also: report every incompatible parameter, not only the first one Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: a9d75a78207d0910f0bcbb6060e38acedc3f07d3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fd581aa354
commit
caef43a5e5
@@ -26,7 +26,7 @@ class Foo {
|
||||
System.out.println(s);
|
||||
});
|
||||
|
||||
foo(<error descr="Incompatible parameter types in lambda expression: expected int but found String">(String p, String k)</error> -> {
|
||||
foo((<error descr="Incompatible parameter type in lambda expression: expected int but found String">String p</error>, <error descr="Incompatible parameter type in lambda expression: expected int but found String">String k</error>) -> {
|
||||
System.out.println(p);
|
||||
});
|
||||
}
|
||||
@@ -62,7 +62,7 @@ class WithTypeParams {
|
||||
System.out.println(p);
|
||||
});
|
||||
|
||||
foo(<error descr="Incompatible parameter types in lambda expression: expected String but found int">(int k)</error> -> {System.out.println(k);});
|
||||
foo((<error descr="Incompatible parameter type in lambda expression: expected String but found int">int k</error>) -> {System.out.println(k);});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user