diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-23 04:19:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-23 04:19:45 +0000 |
commit | fcab7ebb713da9c0bfdffeb016186db781b8bbba (patch) | |
tree | 9d2d8707179a2a6fe679c0747aedd9543ed6be52 /parse.y | |
parent | fb56832daf90bb63e24316ae0bb3de086d0a84de (diff) | |
download | ruby-fcab7ebb713da9c0bfdffeb016186db781b8bbba.tar.gz |
* parse.y (f_norm_arg): check also nested arguments. [ruby-dev:31502]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4154,6 +4154,7 @@ f_norm_arg : tCONSTANT } | tIDENTIFIER { + shadowing_lvar($1); $$ = $1; } ; @@ -4163,7 +4164,6 @@ f_arg_item : f_norm_arg /*%%%*/ if (!is_local_id($1)) yyerror("formal argument must be local variable"); - shadowing_lvar($1); arg_var($1); $$ = NEW_ARGS_AUX($1, 1); /*% |