The following output is produced at main (starting in 5.2.0):
$ ocaml -dsource
OCaml version 5.2.0
Enter #help;; for help.
# let f : type \#let. \#let -> \#let = fun x -> x;;
let f : type let. \#let -> \#let = fun x -> x;;
(The bottom line is the output of pprintast for the user input on the line starting with #.)
I think Pvc_constraint is missing raw-identifier escaping:
|
| Some (Pvc_constraint { locally_abstract_univars = vars; typ }) -> |
|
pp f "%a@;: type@;%a.@;%a@;=@;%a" |
|
(simple_pattern ctxt) p (list pp_print_string ~sep:"@;") |
|
(List.map (fun x -> x.txt) vars) |
|
(core_type ctxt) typ (expression ctxt) x |
The following output is produced at
main(starting in 5.2.0):(The bottom line is the output of pprintast for the user input on the line starting with
#.)I think
Pvc_constraintis missing raw-identifier escaping:ocaml/parsing/pprintast.ml
Lines 1399 to 1403 in 1c124a1