diff options
| author | coqbot-app[bot] | 2020-09-04 09:59:36 +0000 |
|---|---|---|
| committer | GitHub | 2020-09-04 09:59:36 +0000 |
| commit | d6e8e8cba62cdfa46b1e4dfbfd6fed55b2d72df5 (patch) | |
| tree | c7d3ba4a23d427f6897afb56386d8de0213fa9b9 /vernac/record.ml | |
| parent | 2000ba38718e72133b258b378b118a495acb6ffc (diff) | |
| parent | bacbd175ee22a81f170cc08959d1841847505c6d (diff) | |
Merge PR #12893: Fix incorrect debruijn handling when Record calls maybe_unify_params_in
Reviewed-by: maximedenes
Diffstat (limited to 'vernac/record.ml')
| -rw-r--r-- | vernac/record.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vernac/record.ml b/vernac/record.ml index d0036e40f9..bd5b71cd6b 100644 --- a/vernac/record.ml +++ b/vernac/record.ml @@ -81,12 +81,12 @@ let interp_fields_evars env sigma ~ninds ~nparams impls_env nots l = (EConstr.push_rel d env, sigma, impl :: uimpls, d::params, impls)) (env, sigma, [], [], impls_env) nots l in - let _, sigma = Context.Rel.fold_outside ~init:(env,sigma) (fun f (env,sigma) -> + let _, _, sigma = Context.Rel.fold_outside ~init:(env,0,sigma) (fun f (env,k,sigma) -> let sigma = RelDecl.fold_constr (fun c sigma -> - ComInductive.maybe_unify_params_in env sigma ~ninds ~nparams c) + ComInductive.maybe_unify_params_in env sigma ~ninds ~nparams ~binders:k c) f sigma in - EConstr.push_rel f env, sigma) + EConstr.push_rel f env, k+1, sigma) newfs in sigma, (impls, newfs) |
