You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changes were done by @dsyme during our parser recovery work today
what would help is surfacing postmortem notes of those occurrences of collaboration from main maintainers and a detailed TOC of compiler workshop videos: (https://www.youtube.com/watch?v=3Zr0HNVcooU), both those could be .md files under fsharp.org repository.
All would help for this type of issues to get taken up by the community.
We can split the issue in two: parser recovery (hard to fix for a person not familiar with parser infrastructure) and error message (easy to tackle by community at large).
In general it'd need a separate recovery for each place in the grammar (which sometimes would only work for some common kind of similar mistakes), so recovery in match expressions clauses won't help much with union case declarations. Though, a similar technique could be applied here, so some errors would be recovered.
I miss to put "of" between
A
andB
, the whole file is failing to provide tooling support.I'd expect if another declaration (a type, a binding) is encountered, it could determine the broken DU is closed.
I'd expect the error message to guide me in either:
of
before case member definition|
before next case definitionrelated: #1103
The text was updated successfully, but these errors were encountered: