Java: better error message when there are more arguments than parameters (IDEA-336129)

GitOrigin-RevId: a17a5f0f3878b9baf211737a614d1aa1a5103d31
This commit is contained in:
Bas Leijdekkers
2024-06-28 17:14:56 +00:00
committed by intellij-monorepo-bot
parent ed3ae46a60
commit 6916b6b005
22 changed files with 42 additions and 30 deletions
@@ -3,7 +3,7 @@ import java.util.function.UnaryOperator;
class Test<T> {
private void example() {
update(x -> x.flatMap<error descr="'flatMap()' in 'Test' cannot be applied to '(<lambda expression>)'">(y -> getEmpty())</error>);
update(x -> x.flatMap<error descr="Expected no arguments but found 1">(y -> getEmpty())</error>);
}
private <J> Test<J> flatMap() {