The pprintast code is doing the non-trivial job of guessing parenthesis and syntactic resugaring, and not really pleasant to work with. The current codebase does not handle resugaring "::" in the same way in expression and patterns, and one may wonder why, but "if it ain't broke, don't fix it" -- we have better fish to fry.
Original bug ID: 6546
Reporter: @whitequark
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2016-12-07T10:34:48Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.0+beta1 / +rc1
Target version: 4.02.2+dev / +rc1
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @gasche @hcarty
Bug description
It is printed back as
The text was updated successfully, but these errors were encountered: