fix(frontends/lean/server): '[anonymous]' entry being displayed by FINDP
This could happen when there is a declaration (e.g., nat) whose type is equal to an active namespace.
This commit is contained in:
parent
a803b8fd8d
commit
feb4993f9c
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ void server::display_decl(name const & d, environment const & env, options const
|
|||
// using namespace override resolution rule
|
||||
list<name> const & ns_list = get_namespaces(env);
|
||||
for (name const & ns : ns_list) {
|
||||
if (is_prefix_of(ns, d)) {
|
||||
if (is_prefix_of(ns, d) && ns != d) {
|
||||
display_decl(d.replace_prefix(ns, name()), d, env, o);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue