Skip to content

Unsound diagnostics for missing pattern after switchcase #3158

@rintaro

Description

@rintaro

Description

Currently missing pattern after case is diagnosed as "expected expression", but it should be "expected pattern"

Steps to Reproduce

      switch expr {
      case // error: expected expression and ':' in switch case
      }
      switch expr {
      case : // error: expected expression in pattern
      }

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