Skip to content

Unsound parser diagnostics for missing attribute name for switch case/default attributes #3159

@rintaro

Description

@rintaro

Description

After #3156, @ case pattern: in switch statement is diagnosed as "expected type in attribute", but it should be "expected name in attribute" or more preferably "expected attribute name after '@'"

Steps to Reproduce

      switch expr {
       @ case foo: // expected type in attribute
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions