forked from qt-creator/qt-creator
The base result needs to be an instance and not a class declaration.
This commit is contained in:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user