aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorppedrot2012-11-26 09:19:04 +0000
committerppedrot2012-11-26 09:19:04 +0000
commit4b61463f5b95dad398a5e2ac444682793122af20 (patch)
tree583c32152e45943ba5b85a225274e19ab71f04e6
parent31dbba5f5c16f81c6dac2adaba46087da787ac12 (diff)
Fixed a monomorphization error.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16004 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--interp/constrextern.ml11
1 files changed, 7 insertions, 4 deletions
diff --git a/interp/constrextern.ml b/interp/constrextern.ml
index e7f276f553..ae4d54c055 100644
--- a/interp/constrextern.ml
+++ b/interp/constrextern.ml
@@ -218,9 +218,12 @@ let rec check_same_type ty1 ty2 =
List.iter2 check_same_type al1 al2
| CApp(_,(_,e1),al1), CApp(_,(_,e2),al2) ->
check_same_type e1 e2;
- List.iter2 (fun (a1,e1) (a2,e2) ->
- if Option.Misc.compare (eq_located Constrintern.explicitation_eq) e1 e2 then failwith "not same expl";
- check_same_type a1 a2) al1 al2
+ let check_args (a1,e1) (a2,e2) =
+ let eq_expl = eq_located Constrintern.explicitation_eq in
+ if not (Option.Misc.compare eq_expl e1 e2) then failwith "not same expl";
+ check_same_type a1 a2
+ in
+ List.iter2 check_args al1 al2
| CCases(_,_,_,a1,brl1), CCases(_,_,_,a2,brl2) ->
List.iter2 (fun (tm1,_) (tm2,_) -> check_same_type tm1 tm2) a1 a2;
List.iter2 (fun (_,pl1,r1) (_,pl2,r2) ->
@@ -246,7 +249,7 @@ let rec check_same_type ty1 ty2 =
and check_same_binder (nal1,_,e1) (nal2,_,e2) =
List.iter2 (fun (_,na1) (_,na2) ->
- if name_eq na1 na2 then failwith "not same name") nal1 nal2;
+ if not (name_eq na1 na2) then failwith "not same name") nal1 nal2;
check_same_type e1 e2
and check_same_fix_binder bl1 bl2 =