From eab82e1f4d3c43c894383d54bbfcf9eea112de94 Mon Sep 17 00:00:00 2001 From: msozeau Date: Tue, 28 Sep 2010 19:17:41 +0000 Subject: Fix bug #2321, allowing "_" named projections in classes. Not realizing the wish to allow named projections to not be put in the canonical structures databases for Structures. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13474 85f007b7-540e-0410-9357-904b9bb8a0f7 --- plugins/subtac/subtac_classes.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/subtac/subtac_classes.ml b/plugins/subtac/subtac_classes.ml index 31e6307415..1db9d407da 100644 --- a/plugins/subtac/subtac_classes.ml +++ b/plugins/subtac/subtac_classes.ml @@ -134,7 +134,8 @@ let new_instance ?(global=false) ctx (instid, bk, cl) props ?(generalize=true) p let (loc_mid, c) = List.find (fun (id', _) -> Name (snd (get_id id')) = id) rest in let rest' = List.filter (fun (id', _) -> Name (snd (get_id id')) <> id) rest in let (loc, mid) = get_id loc_mid in - Option.iter (fun x -> Dumpglob.add_glob loc (ConstRef x)) (List.assoc mid k.cl_projs); + Option.iter (fun x -> Dumpglob.add_glob loc (ConstRef x)) + (List.assoc (Name mid) k.cl_projs); c :: props, rest' with Not_found -> (CHole (Util.dummy_loc, None) :: props), rest -- cgit v1.2.3