summaryrefslogtreecommitdiff
path: root/src/parser.mly
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.mly')
-rw-r--r--src/parser.mly3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parser.mly b/src/parser.mly
index adf99ede..d41964b7 100644
--- a/src/parser.mly
+++ b/src/parser.mly
@@ -1241,6 +1241,9 @@ atomic_mpat:
{ mk_mpat (MP_list []) $startpos $endpos }
| LsquareBar mpat_list RsquareBar
{ mk_mpat (MP_list $2) $startpos $endpos }
+ | atomic_mpat Colon typ
+ { mk_mpat (MP_typ ($1, $3)) $startpos $endpos }
+
mpexp: