diff options
Diffstat (limited to 'library/decls.ml')
-rw-r--r-- | library/decls.ml | 3 |
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:[] |