Skip to content

Commit 9f09cbf

Browse files
committed
Taking current env and not global env in b286c9f (4 commits ago,
as revealed by rocq-prover#2141).
1 parent e43abf4 commit 9f09cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pretyping/retyping.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ let retype ?(polyprop=true) sigma =
109109
Inductiveops.find_rectype env sigma t
110110
with Not_found -> retype_error BadRecursiveType
111111
in
112-
let n = inductive_nrealdecls (fst (fst (dest_ind_family indf))) in
112+
let n = inductive_nrealdecls_env env (fst (fst (dest_ind_family indf))) in
113113
let t = betazetaevar_applist sigma n p realargs in
114114
(match kind_of_term (whd_betadeltaiota env sigma (type_of env t)) with
115115
| Prod _ -> whd_beta sigma (applist (t, [c]))

0 commit comments

Comments
 (0)