aboutsummaryrefslogtreecommitdiff
path: root/toplevel/command.ml
diff options
context:
space:
mode:
authorHugo Herbelin2015-05-01 11:33:59 +0200
committerHugo Herbelin2015-05-01 11:36:08 +0200
commitf19d0c7baf91fb410de77baed391b0a16db9c4e2 (patch)
tree68fcfd2fb2ea36c7c1e7293833a5c4a941b456ae /toplevel/command.ml
parent857e82b2ca0d164242070599b66138cc431509c9 (diff)
Fixing computation of implicit arguments by position in fixpoints (#4217).
Diffstat (limited to 'toplevel/command.ml')
-rw-r--r--toplevel/command.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml
index cdeecf1bb7..1249581eec 100644
--- a/toplevel/command.ml
+++ b/toplevel/command.ml
@@ -733,7 +733,7 @@ type structured_fixpoint_expr = {
let interp_fix_context env evdref isfix fix =
let before, after = if isfix then split_at_annot fix.fix_binders fix.fix_annot else [], fix.fix_binders in
let impl_env, ((env', ctx), imps) = interp_context_evars env evdref before in
- let impl_env', ((env'', ctx'), imps') = interp_context_evars ~impl_env env' evdref after in
+ let impl_env', ((env'', ctx'), imps') = interp_context_evars ~impl_env ~shift:(List.length before) env' evdref after in
let annot = Option.map (fun _ -> List.length (assums_of_rel_context ctx)) fix.fix_annot in
((env'', ctx' @ ctx), (impl_env',imps @ imps'), annot)