-
Notifications
You must be signed in to change notification settings - Fork 464
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
rescript@11.0.0-alpha.2 Formatter removes brackets that breaks compiler #6141
Milestone
Comments
Thanks for the report. Can you add a self-contained example? |
Or with |
let foo = (. ()) => ()
let fn = (_x): ((. unit) => unit) => foo
let fooC = () => ()
let fnC = (_x): ((unit) => unit) => fooC parens in ret type annotation of |
cristianoc
added a commit
that referenced
this issue
Apr 13, 2023
let a = ((. ()) => "foo")->Ok
let aC = (() => "foo")->Ok The parens are not printed in |
cristianoc
added a commit
that referenced
this issue
Apr 13, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to update rescript-struct, and it compiled with rescript@11.0.0-alpha.2 without a problem, but after running
rescript format -all
, it removed some brackets from the code, which broke the compiler. Here is the commit with removed brackets DZakh/rescript-schema@0bad028The text was updated successfully, but these errors were encountered: