diff options
| author | Pierre-Marie Pédrot | 2016-09-09 13:29:28 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2016-09-09 13:43:42 +0200 |
| commit | d55818c7da468ce1c7c9644cb63f68f7561a17bc (patch) | |
| tree | fc3737cf865b014f5a297ce249b98892e181ecf1 /pretyping | |
| parent | 1888527bb43d6a8c801565af3e6376c91769fbc1 (diff) | |
Tracking careless uses of slow name lookup.
Diffstat (limited to 'pretyping')
| -rw-r--r-- | pretyping/unification.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pretyping/unification.ml b/pretyping/unification.ml index 6d80db6455..36353653a7 100644 --- a/pretyping/unification.ml +++ b/pretyping/unification.ml @@ -1586,7 +1586,7 @@ let make_abstraction_core name (test,out) env sigma c ty occs check_occs concl = let x = id_of_name_using_hdchar (Global.env()) t name in let ids = ids_of_named_context (named_context env) in if name == Anonymous then next_ident_away_in_goal x ids else - if mem_named_context x (named_context env) then + if mem_named_context_val x (named_context_val env) then errorlabstrm "Unification.make_abstraction_core" (str "The variable " ++ Nameops.pr_id x ++ str " is already declared.") else |
