diff options
author | 2008-10-22 18:44:59 +0000 | |
---|---|---|
committer | 2008-10-22 18:44:59 +0000 | |
commit | 6f8a4cd773166c65ab424443042e20d86a8c0b33 (patch) | |
tree | 2aedc97e50d6432e4e905a8ffdf4e7dc67f4954d /toplevel/classes.ml | |
parent | 137c42e3699a434e73a703c6b771d6a5db07233c (diff) |
Fix bugs #1975 and #1976.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11494 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/classes.ml')
-rw-r--r-- | toplevel/classes.ml | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/toplevel/classes.ml b/toplevel/classes.ml index 702d9efb0..301f9bf2a 100644 --- a/toplevel/classes.ml +++ b/toplevel/classes.ml @@ -123,14 +123,6 @@ let implicits_of_context ctx = in ExplByPos (i, explname), (true, true)) 1 (List.rev (Anonymous :: (List.map pi1 ctx))) -let degenerate_decl (na,b,t) = - let id = match na with - | Name id -> id - | Anonymous -> anomaly "Unnamed record variable" in - match b with - | None -> (id, Entries.LocalAssum t) - | Some b -> (id, Entries.LocalDef b) - let name_typeclass_binder avoid = function | LocalRawAssum ([loc, Anonymous], bk, c) -> let name = @@ -157,6 +149,7 @@ let new_class id par ar sup props = let bound, ids = Implicit_quantifiers.free_vars_of_binders ~bound [] (sup @ par) in let bound = Idset.union bound (Implicit_quantifiers.ids_of_list ids) in let sup, bound = name_typeclass_binders bound sup in + let par, bound = name_typeclass_binders bound par in let supnames = List.fold_left (fun acc b -> match b with |