diff options
author | 2008-09-14 10:03:17 +0000 | |
---|---|---|
committer | 2008-09-14 10:03:17 +0000 | |
commit | 3eaa54c5e29d4241794578646ac6776c2ec2bbd2 (patch) | |
tree | 53178d7521e8d753efdc91edfa0014bff5933b24 /toplevel/classes.ml | |
parent | 7caed120ea87912c5dcd8c7c58bf43b2411c62ed (diff) |
Fix bug #1940: uncaught exception when searching for a type class.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11403 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/classes.ml')
-rw-r--r-- | toplevel/classes.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toplevel/classes.ml b/toplevel/classes.ml index bf9ee1269..c7ba7fa44 100644 --- a/toplevel/classes.ml +++ b/toplevel/classes.ml @@ -382,8 +382,8 @@ let new_instance ?(global=false) ctx (instid, bk, cl) props ?(on_free_vars=defau let c = Command.generalize_constr_expr tclass ctx in let imps, c' = interp_type_evars isevars env c in let ctx, c = decompose_prod_assum c' in - let cl, args = Typeclasses.dest_class_app c in - cl, ctx, imps, List.rev (Array.to_list args) + let cl, args = Typeclasses.dest_class_app (push_rel_context ctx env) c in + cl, ctx, imps, List.rev args in let id = match snd instid with |