-
-
Notifications
You must be signed in to change notification settings - Fork 15k
e0308 possibly confusing error message #62677
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 got the following error today:
I think the note
this function's body doesn't returnis misleading - I thought that the issue was that an inner method I was calling had an infinite loop, or returned!some other way, but it doesn't mean this, it actually means "this function's body doesn't return a value". Maybe the error message could be changed?