aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authormsozeau2010-09-28 19:17:41 +0000
committermsozeau2010-09-28 19:17:41 +0000
commiteab82e1f4d3c43c894383d54bbfcf9eea112de94 (patch)
treeb6a9ab43a8de5dcb9e8f992b15aba76ce8fb14b3 /plugins
parent49114c2ec22d8a238a1e939dbc233da7e99d59cb (diff)
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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/subtac/subtac_classes.ml3
1 files changed, 2 insertions, 1 deletions
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