summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-06 17:59:53 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-06 17:59:53 +0000
commit8a4abe47cacd613a2d77287df75245fef6693246 (patch)
treee16415a5c89603a9adb4f968996d79f559c0f157 /parse.y
parent0dd4fde745f2c33a473ea3ee54b01a1d24d4586c (diff)
* parse.y (stmt): rhs of multiple assignment should not be
expanded using "to_a". [ruby-dev:21527] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4710 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 7005602..59ef2a8 100644
--- a/parse.y
+++ b/parse.y
@@ -486,7 +486,7 @@ stmt : kALIAS fitem {lex_state = EXPR_FNAME;} fitem
| mlhs '=' command_call
{
value_expr($3);
- $1->nd_value = ($1->nd_head) ? NEW_SPLAT($3) : NEW_ARRAY($3);
+ $1->nd_value = NEW_TO_ARY($3);
$$ = $1;
}
| var_lhs tOP_ASGN command_call
@@ -578,7 +578,7 @@ stmt : kALIAS fitem {lex_state = EXPR_FNAME;} fitem
}
| mlhs '=' arg_value
{
- $1->nd_value = ($1->nd_head) ? NEW_SPLAT($3) : NEW_ARRAY($3);
+ $1->nd_value = NEW_TO_ARY($3);
$$ = $1;
}
| mlhs '=' mrhs