The base result needs to be an instance and not a class declaration.

This commit is contained in:
Roberto Raggi
2009-10-16 12:46:26 +02:00
parent 8b514657cc
commit 4007963a0e

View File

@@ -765,10 +765,10 @@ ResolveExpression::resolveBaseExpression(const QList<Result> &baseResults, int a
}
}
if (ty->isClassType() || ty->isNamedType())
if (ty->isNamedType())
results.append(Result(ty, lastVisibleSymbol));
if (Function *fun = ty->asFunctionType()) {
else if (Function *fun = ty->asFunctionType()) {
Scope *funScope = fun->scope();
if (funScope && (funScope->isBlockScope() || funScope->isNamespaceScope())) {