aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-23 04:19:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-23 04:19:45 +0000
commitfcab7ebb713da9c0bfdffeb016186db781b8bbba (patch)
tree9d2d8707179a2a6fe679c0747aedd9543ed6be52 /parse.y
parentfb56832daf90bb63e24316ae0bb3de086d0a84de (diff)
downloadruby-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.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 583bc45bdd..857c411d1f 100644
--- a/parse.y
+++ b/parse.y
@@ -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);
/*%