diff options
author | 2010-06-29 22:21:33 +0000 | |
---|---|---|
committer | 2010-06-29 22:21:33 +0000 | |
commit | cc099cc1b2f1370ec1d8f57c54c29045513b583b (patch) | |
tree | 347b03048a86e2debb9257b9de78077cacaf8a70 /toplevel | |
parent | b66127f53f411da94048e8a98e745c642cb1c851 (diff) |
Correct wrong handling of evars in instance definitions that prevented
information going from the body to the type.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13224 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
-rw-r--r-- | toplevel/classes.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toplevel/classes.ml b/toplevel/classes.ml index 62a7ebb44..9c21366d2 100644 --- a/toplevel/classes.ml +++ b/toplevel/classes.ml @@ -146,7 +146,7 @@ let new_instance ?(abstract=false) ?(global=false) ctx (instid, bk, cl) props let tclass = if generalize then CGeneralization (dummy_loc, Implicit, Some AbsPi, tclass) else tclass in let k, cty, ctx', ctx, len, imps, subst = let (env', ctx), imps = interp_context_evars evars env ctx in - let c', imps' = interp_type_evars_impls ~evdref:evars env' tclass in + let c', imps' = interp_type_evars_impls ~evdref:evars ~fail_evar:false env' tclass in let len = List.length ctx in let imps = imps @ Impargs.lift_implicits len imps' in let ctx', c = decompose_prod_assum c' in |