Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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())) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment