Skip to content
Snippets Groups Projects
Commit 9d63e4a6 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Try to resolve the type in the scope of the declaration.

parent ba6b52ce
Branches
Tags
No related merge requests found
......@@ -604,7 +604,12 @@ ClassOrNamespace *ResolveExpression::baseExpression(const QList<LookupItem> &bas
if (ClassOrNamespace *retBinding = findClass(ptrTy->elementType(), overload->scope()))
return retBinding;
else if (debug) {
else if (scope != overload->scope()) {
if (ClassOrNamespace *retBinding = findClass(ptrTy->elementType(), scope))
return retBinding;
}
if (debug) {
Overview oo;
qDebug() << "no class for:" << oo(ptrTy->elementType());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment