go/parser: fails to parse an invalid switch statement #29148
Labels
gopls/parsing
Issues related to parsing / poor parser recovery.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Repro case:
In this case,
lit. case *ast.KeyValueExpr:
gets parsed into an *ast.BadStmt. This is a problem for tools that need to work on broken code.The text was updated successfully, but these errors were encountered: