aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7>2011-06-17 00:09:44 +0000
committerGravatar msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7>2011-06-17 00:09:44 +0000
commitf854501ff2777353f5441e401715d3cf4c90bfb0 (patch)
tree3d07eaf66a1ab171f032b7c9f4288fffeb69211e
parent0d268a0857181592f61e31be258eaa2a57b648e4 (diff)
Fix bug 2269, program typechecker not used in Instance conclusions
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14212 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--plugins/subtac/subtac_classes.ml5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/subtac/subtac_classes.ml b/plugins/subtac/subtac_classes.ml
index 05e634c58..9fc3cb59c 100644
--- a/plugins/subtac/subtac_classes.ml
+++ b/plugins/subtac/subtac_classes.ml
@@ -38,6 +38,11 @@ let interp_context_evars evdref env params =
(fun env t -> SPretyping.understand_tcc_evars evdref env IsType t)
(SPretyping.understand_judgment_tcc evdref) !evdref env params in bl
+let interp_type_evars_impls ~evdref ?(impls=empty_internalization_env) env c =
+ let c = intern_gen true ~impls !evdref env c in
+ let imps = Implicit_quantifiers.implicits_of_glob_constr ~with_products:true c in
+ SPretyping.understand_tcc_evars ~fail_evar:false evdref env IsType c, imps
+
let type_ctx_instance evars env ctx inst subst =
let rec aux (subst, instctx) l = function
(na, b, t) :: ctx ->