ocaml-ppx / ocamlformat

Auto-formatter for OCaml code
MIT License
633 stars 179 forks source link

Add type constraint to binding_op #2486

Closed gpetiot closed 11 months ago

gpetiot commented 11 months ago

Contributing to #2401

The main positive is removing Sugar.type_cstr (all this code is inconvenient for the polynewtypes shenanigans) by doing this work in the parser.

A minor side effect is that we don't add useless parentheses around:

It's a fix, but not important enough to add a line in the changelog.

gpetiot commented 11 months ago

I think I fixed all regressions, test_branch doesn't report any diff.