-
Notifications
You must be signed in to change notification settings - Fork 446
Open
Labels
SwiftParserBugs in the (new) Parser written in SwiftBugs in the (new) Parser written in SwiftbugSomething isn't workingSomething isn't working
Description
Issue Kind
Bad Diagnostic Produced
Source Code
protocol Test<Foo Bar> {}
Description
Produces the following diagnostics
1 │ protocol Test<Foo Bar> {}
│ ├─ error: expected '>' to end primary associated type clause
│ ╰─ error: unexpected code 'Bar>' in protocol
We should be consuming Bar
as an unexpected token when looking for the closing >
in the primary associated value clause. The tricky part is that none of our recovery infrastructure supports the recovery to a token prefix.
Came up in #1910 (comment)
Metadata
Metadata
Assignees
Labels
SwiftParserBugs in the (new) Parser written in SwiftBugs in the (new) Parser written in SwiftbugSomething isn't workingSomething isn't working