Skip to content

Commit

Permalink
Remove calls to Global.env in Typing
Browse files Browse the repository at this point in the history
  • Loading branch information
maximedenes committed Apr 10, 2019
1 parent 84fa6a4 commit 4d1cbe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pretyping/typing.ml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ let check_type_fixpoint ?loc env sigma lna lar vdefj =

(* FIXME: might depend on the level of actual parameters!*)
let check_allowed_sort env sigma ind c p =
let specif = Global.lookup_inductive (fst ind) in
let specif = lookup_mind_specif env (fst ind) in
let sorts = elim_sorts specif in
let pj = Retyping.get_judgment_of env sigma p in
let _, s = splay_prod env sigma pj.uj_type in
Expand Down

0 comments on commit 4d1cbe1

Please sign in to comment.