Commit e6b0b563 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed global lookup.

parent 5daa0e61
......@@ -311,6 +311,9 @@ QList<Symbol *> ClassOrNamespace::lookup(const Name *name)
if (q->isGlobal())
binding = globalNamespace();
if (q->nameCount() == 1)
return binding->lookup(q->unqualifiedNameId());
binding = binding->lookupClassOrNamespace(q->nameAt(0));
for (unsigned index = 1; binding && index < q->nameCount() - 1; ++index)
......
Markdown is supported
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