Commit 4007963a authored by Roberto Raggi's avatar Roberto Raggi
Browse files

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

parent 8b514657
......@@ -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())) {
......
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