Commit a56fd7b9 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed the return type for objc_msg_send expressions.

parent e5afb64f
......@@ -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;
......
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