summaryrefslogtreecommitdiff
path: root/src/parser.mly
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.mly')
-rw-r--r--src/parser.mly2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.mly b/src/parser.mly
index b781ea1f..c8cc49a3 100644
--- a/src/parser.mly
+++ b/src/parser.mly
@@ -658,6 +658,8 @@ pat:
{ $1 }
| pat1 As typ
{ mk_pat (P_var ($1, $3)) $startpos $endpos }
+ | pat1 Match typ
+ { mk_pat (P_var ($1, $3)) $startpos $endpos }
pat_list:
| pat