-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Recover from common if let syntax mistakes/typos #103587
Copy link
Copy link
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Activity
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: link
The current output is:
Ideally the output should suggest how to fix the syntax mistakes/typos for each of the above examples.
1 -> Remove extra
=2 -> Swap
xandSome(_)3 -> 1 and 2
4 -> Add
let