refmt on
switch (f ()) {
| x => Some x
| exception (Sys_error _ as exc) => raise exc
};
yields
switch (f ()) {
| x => Some x
| exception Sys_error _ as exc => raise exc
};
which does not type-check with Error: Unbound value exc. Warning 11 (unused match case) is also triggered.
It seems that the parens in the exception match case are required for correct parsing, but refmt removes them anyway.
Thanks, I'll get to this next.
Made a pr with a fix above.
Pretty good response rate we're getting =D
Most helpful comment
Made a pr with a fix above.