Closed bryphe closed 1 year ago
I ran into a very similar issue, not sure if the same but tracking here in case it helps.
In v3.7.0 from opam.
let foo =
fun
| (hey: baz) => ();
gets compiled into:
let foo =
fun
| hey: baz => ();
This is fixed in the master branch, we will release it under 3.9.0
Just saw there was a new release of
@opam/reason
at version3.6.2
- figured I'd give it a test run!It looks like there is a regression with
refmt
- in some cases, the parentheses can be removed too aggressively from an expression, for example:Gets
refmt
'd to:Which then becomes a compilation error:
Hit this in trying to upgrade Onivim here: https://github.com/onivim/oni2/pull/2688