aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pretyping/evarutil.ml1
-rw-r--r--proofs/clenv.ml1
2 files changed, 1 insertions, 1 deletions
diff --git a/pretyping/evarutil.ml b/pretyping/evarutil.ml
index 4ccf4817cd..a53ecf5355 100644
--- a/pretyping/evarutil.ml
+++ b/pretyping/evarutil.ml
@@ -71,7 +71,6 @@ let whd_castappevar_stack sigma c =
whrec (existential_value sigma (ev,args), l)
| Cast (c,_) -> whrec (c, l)
| App (f,args) -> whrec (f, Array.fold_right (fun a l -> a::l) args l)
- | LetIn (_,v,_,b) -> whrec (subst1 v b, l)
| _ -> s
in
whrec (c, [])
diff --git a/proofs/clenv.ml b/proofs/clenv.ml
index 43a07aa1a5..be9bd638ac 100644
--- a/proofs/clenv.ml
+++ b/proofs/clenv.ml
@@ -175,6 +175,7 @@ let unify_0 cv_pb mc wc m n =
error_cannot_unify (m,n)
| LetIn (_,b,_,c), _ -> unirec_rec pb substn (subst1 b c) cN
+ | _, LetIn (_,b,_,c) -> unirec_rec pb substn cM (subst1 b c)
| _ -> error_cannot_unify (m,n)