diff options
author | 2016-09-15 18:10:48 +0200 | |
---|---|---|
committer | 2017-08-01 17:57:37 +0200 | |
commit | 569a26809a3b5e72033aac29e9e2bc91f74f2092 (patch) | |
tree | ece8ef50140da9c1f0719c0e1f25e11a7777b568 /vernac/command.ml | |
parent | a92b0e3abb476743f6f12ce828a0d82eb3c98e98 (diff) |
Remove understand_tcc_evars.
Use the functional interface understand_tcc instead.
Diffstat (limited to 'vernac/command.ml')
-rw-r--r-- | vernac/command.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vernac/command.ml b/vernac/command.ml index e04bebe33..a315ac14e 100644 --- a/vernac/command.ml +++ b/vernac/command.ml @@ -393,8 +393,9 @@ let is_impredicative env u = let interp_ind_arity env evdref ind = let c = intern_gen IsType env ind.ind_arity in - let imps = Implicit_quantifiers.implicits_of_glob_constr ~with_products:true c in - let t, impls = understand_tcc_evars env evdref ~expected_type:IsType c, imps in + let impls = Implicit_quantifiers.implicits_of_glob_constr ~with_products:true c in + let (evd,t) = understand_tcc env !evdref ~expected_type:IsType c in + evdref := evd; let pseudo_poly = check_anonymous_type c in let () = if not (Reductionops.is_arity env !evdref t) then user_err ?loc:(constr_loc ind.ind_arity) (str "Not an arity") |