With over-parenthesized method that isn't called, E0615 suggests adding parentheses in the wrong place #89044
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
The fix suggested by the compiler still has the problem, because the parentheses-to-call are added outside of the parentheses in the code.
Ideally the output should look like:
This is similar to the recently fixed #88803, but differs in that the input code cannot be fixed solely by removing parentheses.
The text was updated successfully, but these errors were encountered: