-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support type asd = ~a:bool=? => int;
#2056
Comments
tbh I like requiring parens there. |
We can still format to the latter; just that this currently throws a parser error and it's hard to figure out why |
lol most parser errors are hard to figure out why atm |
Merged the diff; I understand that we don't want to support this, and tbh I won't document this. It's just one of the several places where we relax the parser (e.g. for semicolon and switch braces too) for now. If we can't have great error messages here, might as well have good recovery first. We can remove this feature later. |
We should make notes in the parser which rules are not important to keep around, so that one day when a conflict comes up with a more important feature, we know we can easily delete it. |
Right now you need to wrap in parens:
type asd = (~a:bool=?) => int;
Dunno what conflict this has
The text was updated successfully, but these errors were encountered: