summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-04 06:01:51 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-04 06:01:51 +0000
commit9c16d334dbc046433429329fdf4a30562deba8b7 (patch)
treee60fcd064e24743b712ebaa15dc1d242319e31be /parse.y
parented353ff1bb6df83138ba33b083bc2d258ad75cfe (diff)
* parse.y (f_arg): Ripper should not do semantic check. [ruby-dev:26948]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index b04cd40c20..637d9ebb84 100644
--- a/parse.y
+++ b/parse.y
@@ -4106,14 +4106,14 @@ f_arg : f_norm_arg
{
/*%%%*/
VALUE arg = ID2SYM($3);
- /*%
- VALUE arg = $3;
- %*/
$$ = $1;
if (rb_ary_includes($$, arg)) {
yyerror("duplicated argument arg");
}
rb_ary_push($$, arg);
+ /*%
+ rb_ary_push($$, $3);
+ %*/
}
;