Commit 08580c34 by Ian Lance Taylor

compiler: Error if receiver and parameter have same name.

From-SVN: r203455
parent d6218114
......@@ -744,6 +744,8 @@ Parse::signature(Typed_identifier* receiver, Location location)
return NULL;
Parse::Names names;
if (receiver != NULL)
names[receiver->name()] = receiver;
if (params != NULL)
this->check_signature_names(params, &names);
if (results != NULL)
......
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