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
In order to handle properly optional arguments, application is n-ary.
That is [(f 1 2) ~foo:()] andf [f 1 2 ~foo:()] are not equivalent.
It looks like camlp4 is merging the two applications into one.
Original bug ID: 5048
Reporter: cfalls
Assigned to: @xclerc
Status: closed (set by @damiendoligez on 2015-01-09T18:47:40Z)
Resolution: suspended
Priority: normal
Severity: minor
Version: 3.11.2
Target version: undecided
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Monitored by: @glondu @hcarty
Bug description
let f ?(foo=()) _x _y z = z;;
With camlp4:
(f 1 2) ~foo:();;
Without camlp4:
(f 1 2) ~foo:();;
The text was updated successfully, but these errors were encountered: