aboutsummaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-rw-r--r--library/declare.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/declare.ml b/library/declare.ml
index 8da7753625..3063d801c9 100644
--- a/library/declare.ml
+++ b/library/declare.ml
@@ -288,7 +288,8 @@ let mind_path = function
let declare_eliminations sp i =
let oper = MutInd (sp,i) in
- let ids = ids_of_sign (Global.var_context()) in
+ let mib = Global.lookup_mind sp in
+ let ids = ids_of_sign mib.mind_hyps in
let mind = DOPN(oper, Array.of_list (List.map (fun id -> VAR id) ids)) in
let mispec = Global.lookup_mind_specif mind in
let mindstr = string_of_id (mis_typename mispec) in