diff options
author | Adam Chlipala <adamc@csail.mit.edu> | 2017-07-20 10:43:09 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@csail.mit.edu> | 2017-07-20 10:43:09 -0400 |
commit | f814fd699dc707e810c996062370ee787863d926 (patch) | |
tree | 1bc7db8467570b4e111970460ae7d6fa1408319d /src | |
parent | 04793b5abfb641763864d637a9da95341b874b01 (diff) |
Grandfathered change for release: fix extended 'val' rule in grammar
Diffstat (limited to 'src')
-rw-r--r-- | src/urweb.grm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/urweb.grm b/src/urweb.grm index 2a3fe283..afebff0a 100644 --- a/src/urweb.grm +++ b/src/urweb.grm @@ -636,6 +636,10 @@ decl : CON SYMBOL cargl2 kopt EQ cexp (let let val t = Option.getOpt (copt, (CWild (KType, loc), loc)) val (e, t) = #2 eargl2 (eexp, t) + val pat = + case #1 t of + CWild _ => pat + | _ => (PAnnot (pat, t), loc) in [(DVal (pat, e), loc)] end |