Hi,
The following program causes ocamlformat to crash:
(it tries to format it as let ?a:A = ())
I had to check the exact parsing rules. What they say is that only ppat_var and ppat_any are recognized without parens.
I have to admit it's difficult to find a reasonable use case for this combination of features, but that's valid. A similar situation hapens with ?a:(()) and ?a:(0).