feat(kernel/formatter): avoid hierarchical names when printing local constants
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
405b24861c
commit
f826e98196
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ name pick_unused_name(expr const & t, name const & s) {
|
|||
name r = s;
|
||||
unsigned i = 1;
|
||||
while (is_used_name(t, r)) {
|
||||
r = name(s, i);
|
||||
r = name(s).append_after(i);
|
||||
i++;
|
||||
}
|
||||
return r;
|
||||
|
|
Loading…
Reference in a new issue