Skip to content

Relax syntax restriction on Pexp_new #6820

@vicuna

Description

@vicuna

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions