You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4340 Reporter: jm Assigned to: ertai Status: closed (set by @xavierleroy on 2010-04-29T12:26:18Z) Resolution: fixed Priority: normal Severity: minor Version: 3.10+dev Fixed in version: 3.10+dev Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Bug description
$ cat test.ml4
let f ?(a: int = 42) () = a
$ camlp4o -printer o -impl test.ml4 > test.ml
$ cat test.ml
let f ?((a : int) = 42) () = a
Original bug ID: 4340
Reporter: jm
Assigned to: ertai
Status: closed (set by @xavierleroy on 2010-04-29T12:26:18Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.10+dev
Fixed in version: 3.10+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Bug description
$ cat test.ml4
let f ?(a: int = 42) () = a
$ camlp4o -printer o -impl test.ml4 > test.ml
$ cat test.ml
let f ?((a : int) = 42) () = a
$ ocamlc -c test.ml
File "test.ml", line 1, characters 8-9:
Syntax error
Additional information
The "abstract output" does not have this problem.
The text was updated successfully, but these errors were encountered: