summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@csail.mit.edu>2017-07-20 10:43:09 -0400
committerGravatar Adam Chlipala <adamc@csail.mit.edu>2017-07-20 10:43:09 -0400
commitf814fd699dc707e810c996062370ee787863d926 (patch)
tree1bc7db8467570b4e111970460ae7d6fa1408319d /src
parent04793b5abfb641763864d637a9da95341b874b01 (diff)
Grandfathered change for release: fix extended 'val' rule in grammar
Diffstat (limited to 'src')
-rw-r--r--src/urweb.grm4
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