aboutsummaryrefslogtreecommitdiffhomepage
path: root/library/decls.ml
diff options
context:
space:
mode:
authorGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-11-25 17:39:07 +0000
committerGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-11-25 17:39:07 +0000
commitb35582012e9f7923ca2e55bfbfae9215770f8fbd (patch)
tree21ec39af08f0d8ce1b33272443518e843a9d5c28 /library/decls.ml
parent9489721652bb443b5ed680701d94283737038f0b (diff)
Monomorphization (library)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16001 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/decls.ml')
-rw-r--r--library/decls.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/decls.ml b/library/decls.ml
index f6fa626b1..af6ee3448 100644
--- a/library/decls.ml
+++ b/library/decls.ml
@@ -9,6 +9,7 @@
(** This module registers tables for some non-logical informations
associated declarations *)
+open Util
open Names
open Sign
open Decl_kinds
@@ -64,7 +65,7 @@ let initialize_named_context_for_proof () =
let last_section_hyps dir =
fold_named_context
(fun (id,_,_) sec_ids ->
- try if dir=variable_path id then id::sec_ids else sec_ids
+ try if dir_path_eq dir (variable_path id) then id::sec_ids else sec_ids
with Not_found -> sec_ids)
(Environ.named_context (Global.env()))
~init:[]