Commit 4a259547 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Oops! check the symbol's name :-)

parent 47f27ee7
...@@ -277,7 +277,7 @@ static void closure(const Location &loc, ...@@ -277,7 +277,7 @@ static void closure(const Location &loc,
Scope *scope = symbol->members(); Scope *scope = symbol->members();
for (Symbol *symbol = scope->lookat(id); symbol; symbol = symbol->next()) { for (Symbol *symbol = scope->lookat(id); symbol; symbol = symbol->next()) {
if (! symbol->isNamespace()) if (symbol->name() != name || ! symbol->isNamespace())
continue; continue;
const Location l(symbol); const Location l(symbol);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment