fix(frontends/lean/pp): option 'pp.private_names' should also affect private declarations defined in the current file
This commit is contained in:
parent
d082fb7402
commit
0aa7e4a9f9
1 changed files with 2 additions and 1 deletions
|
@ -396,7 +396,8 @@ auto pretty_fn::pp_const(expr const & e) -> result {
|
|||
name n = const_name(e);
|
||||
if (!m_full_names) {
|
||||
if (auto it = is_aliased(n)) {
|
||||
n = *it;
|
||||
if (!m_private_names || !hidden_to_user_name(m_env, n))
|
||||
n = *it;
|
||||
} else {
|
||||
for (name const & ns : get_namespaces(m_env)) {
|
||||
if (!ns.is_anonymous()) {
|
||||
|
|
Loading…
Reference in a new issue