Skip to content
Snippets Groups Projects
Commit a56fd7b9 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed the return type for objc_msg_send expressions.

parent e5afb64f
No related branches found
No related tags found
No related merge requests found
......@@ -669,8 +669,11 @@ bool ResolveExpression::visit(ObjCMessageExpressionAST *ast)
}
}
if (binding)
addResults(binding->lookup(ast->selector->name));
if (binding) {
foreach (Symbol *s, binding->lookup(ast->selector->name))
if (ObjCMethod *m = s->asObjCMethod())
addResult(m->returnType(), result.scope());
}
}
return false;
......
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