Skip to content

break/cont outside loop is checked poorly #1853

Description

@marijnh

We have some code deep in trans calling sess.bug without a span when a break or cont happens outside of a loop. In general, I think trans shouldn't be doing error-checking, and this should be caught by an earlier pass and reported with a span.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions