aboutsummaryrefslogtreecommitdiff
path: root/pretyping
diff options
context:
space:
mode:
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/detyping.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/pretyping/detyping.ml b/pretyping/detyping.ml
index e1f0da13b5..8bd6a1a018 100644
--- a/pretyping/detyping.ml
+++ b/pretyping/detyping.ml
@@ -387,7 +387,7 @@ and share_names tenv n l avoid env c t =
if !Options.v7 && n=0 then
let c = detype tenv avoid env c in
let t = detype tenv avoid env t in
- (l,c,t)
+ (List.rev l,c,t)
else
match kind_of_term c, kind_of_term t with
| Lambda (na,t,c), Prod (na',t',c') ->
@@ -420,7 +420,7 @@ and share_names tenv n l avoid env c t =
if n>0 then warning "Detyping.detype: cannot factorize fix enough";
let c = detype tenv avoid env c in
let t = detype tenv avoid env t in
- (l,c,t)
+ (List.rev l,c,t)
and detype_eqn tenv avoid env constr construct_nargs branch =
let make_pat x avoid env b ids =