diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2010-04-02 12:53:33 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2010-04-02 12:53:33 +0000 |
commit | ab550592efa74f1f67a705f84251cce7e32a64c6 (patch) | |
tree | 58e36632e2d9e8cf170102d04b87e2b595fc2dac /parsing/parser.mly | |
parent | cf088abef1ac4c55db9e6962ddac416463c14125 (diff) |
Adding "module type of <module-expr>" in the class of <module-type>.
Merge of branches/moduletypeof -r 9636:10226
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10227 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'parsing/parser.mly')
-rw-r--r-- | parsing/parser.mly | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/parsing/parser.mly b/parsing/parser.mly index a21fdd859..d12c31446 100644 --- a/parsing/parser.mly +++ b/parsing/parser.mly @@ -519,6 +519,8 @@ module_type: { mkmty(Pmty_functor($3, $5, $8)) } | module_type WITH with_constraints { mkmty(Pmty_with($1, List.rev $3)) } + | MODULE TYPE OF module_expr + { mkmty(Pmty_typeof $4) } | LPAREN module_type RPAREN { $2 } | LPAREN module_type error |