diff options
Diffstat (limited to 'src/urweb.grm')
-rw-r--r-- | src/urweb.grm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/urweb.grm b/src/urweb.grm index 638ede12..0d2c1d47 100644 --- a/src/urweb.grm +++ b/src/urweb.grm @@ -985,6 +985,7 @@ earg : patS (fn (e, t) => val e' = case #1 patS of PVar x => (EAbs (x, NONE, e), loc) + | PAnnot ((PVar x, _), t) => (EAbs (x, SOME t, e), loc) | _ => (EAbs ("$x", SOME pt, (ECase ((EVar ([], "$x", DontInfer), loc), @@ -1001,6 +1002,7 @@ eargp : pterm (fn (e, t) => val e' = case #1 pterm of PVar x => (EAbs (x, NONE, e), loc) + | PAnnot ((PVar x, _), t) => (EAbs (x, SOME t, e), loc) | _ => (EAbs ("$x", SOME pt, (ECase ((EVar ([], "$x", DontInfer), loc), |