fix: error message

This commit is contained in:
Leonardo de Moura 2020-09-09 16:42:41 -07:00
parent 20bc004c70
commit 02fc447b04

View file

@ -19,7 +19,7 @@ _ ← getLevel e; pure ()
def throwLetTypeMismatchMessage {α} (fvarId : FVarId) : MetaM α := do
lctx ← getLCtx;
match lctx.find? fvarId with
| some (LocalDecl.ldecl _ n t v b _) => do
| some (LocalDecl.ldecl _ _ n t v _) => do
vType ← inferType v;
throwError $
"invalid let declaration, term" ++ indentExpr v