-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Confusing suggestion on incorrect closing } #70583
Copy link
Copy link
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.T-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.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.T-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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected to see this happen: Some more or less helpful message about the imbalanced braces.
Instead, this happened: I got a rather confusing suggestion:
The empty block it points to is not even in the same function, so this suggestion is more confusing than helpful.
This issue has been assigned to @kper via this comment.