Skip to content

"not all control paths return a value" should indicate which control paths don't return a value #18390

Closed
@emberian

Description

@emberian

It's very mysterious when this error occurs in a big function and it's not one of the obvious extra-semicolon errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions