mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (f_norm_arg, f_arg_item): not croak already erred names.
[ruby-dev:31687] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7aaf7dac8d
commit
6a9b9f488b
2 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,7 @@
|
|||
Fri Aug 31 03:48:58 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Fri Aug 31 04:18:03 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (f_norm_arg, f_arg_item): not croak already erred names.
|
||||
[ruby-dev:31687]
|
||||
|
||||
* parse.y (assignable_gen): ignore already erred names.
|
||||
|
||||
|
|
4
parse.y
4
parse.y
|
@ -4160,6 +4160,8 @@ f_norm_arg : tCONSTANT
|
|||
| tIDENTIFIER
|
||||
{
|
||||
/*%%%*/
|
||||
if (!is_local_id($1))
|
||||
yyerror("formal argument must be local variable");
|
||||
shadowing_lvar($1);
|
||||
/*%
|
||||
%*/
|
||||
|
@ -4170,8 +4172,6 @@ f_norm_arg : tCONSTANT
|
|||
f_arg_item : f_norm_arg
|
||||
{
|
||||
/*%%%*/
|
||||
if (!is_local_id($1))
|
||||
yyerror("formal argument must be local variable");
|
||||
arg_var($1);
|
||||
$$ = NEW_ARGS_AUX($1, 1);
|
||||
/*%
|
||||
|
|
Loading…
Add table
Reference in a new issue