diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-06 17:59:53 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-06 17:59:53 +0000 |
commit | 8a4abe47cacd613a2d77287df75245fef6693246 (patch) | |
tree | e16415a5c89603a9adb4f968996d79f559c0f157 /parse.y | |
parent | 0dd4fde745f2c33a473ea3ee54b01a1d24d4586c (diff) | |
download | ruby-8a4abe47cacd613a2d77287df75245fef6693246.tar.gz |
* 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.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |