-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Relax syntax restriction on Pexp_new #6820
Copy link
Copy link
Closed
Description
Original bug ID: 6820
Reporter: @Drup
Status: closed (set by @alainfrisch on 2015-03-26T09:16:33Z)
Resolution: won't fix
Priority: normal
Severity: minor
Category: typing
Bug description
Currently, only a longident can be placed after the "new" keyword. This kind of restriction has been relaxed for several other piece of syntaxes (+ a check before typechecking). It would be useful to allow expressions there.
Initial motivation can be found here: ocsigen/js_of_ocaml#239 (comment)
(I just realized there is no "OCaml syntax/parser" category in mantis)
Reactions are currently unavailable