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 12e64141..10241137 100644
--- a/src/parser.mly
+++ b/src/parser.mly
@@ -501,6 +501,8 @@ atomic_pat:
{ ploc (P_typ($2,$4)) }
| id
{ ploc (P_app($1,[])) }
+ | tyvar
+ { ploc (P_var $1) }
| Lcurly fpats Rcurly
{ ploc (P_record((fst $2, snd $2))) }
| Lsquare comma_pats Rsquare