summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-18 07:15:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-18 07:15:06 +0000
commit1a1fb4309ac4ad58c9fb169d775f813c395f53fb (patch)
treef4534afac345b2b08542fde02b09323861a12d96 /parse.y
parente687301392979eb787c959ed43f411303dc11221 (diff)
* compile.c (iseq_compile_each), parse.y (stmt, arg): arg_concat()
on op_asgn was inversed. [ruby-core:25629] [Bug #2050] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index eca19d05d..fab4e3990 100644
--- a/parse.y
+++ b/parse.y
@@ -1050,7 +1050,7 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
value_expr($6);
if (!$3) $3 = NEW_ZARRAY();
- args = arg_concat($6, $3);
+ args = arg_concat($3, $6);
if ($5 == tOROP) {
$5 = 0;
}
@@ -1884,7 +1884,7 @@ arg : lhs '=' arg
value_expr($6);
if (!$3) $3 = NEW_ZARRAY();
- args = arg_concat($6, $3);
+ args = arg_concat($3, $6);
if ($5 == tOROP) {
$5 = 0;
}