Use Prototype instead of Function.

This commit is contained in:
Roberto Raggi
2010-08-05 17:06:16 +02:00
committed by Oswald Buddenhagen
parent 9aa991d636
commit 4ff3ee2ff0
11 changed files with 20 additions and 28 deletions

View File

@@ -280,7 +280,7 @@ QList<LookupItem> LookupContext::lookup(const Name *name, Scope *scope) const
}
}
} else if (scope->isFunctionScope()) {
} else if (scope->isPrototypeScope()) {
Function *fun = scope->owner()->asFunction();
bindings()->lookupInScope(name, fun->members(), &candidates, /*templateId = */ 0, /*binding=*/ 0);