diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-01 12:38:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-01 12:38:05 +0000 |
commit | ed3fdff77ef6c3904acdb276ab5a997c6c331d3a (patch) | |
tree | d3e21047c6eb1256dc9cf845331fede290eeaf70 /parse.y | |
parent | 51f9355bd6b3f81e7fbb3e7675f121ff2a99c530 (diff) |
* parse.y (stmt, arg): should not omit lhs of OP_ASGN1 even if
empty. [ruby-dev:30452]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -542,6 +542,7 @@ stmt : kALIAS fitem {lex_state = EXPR_FNAME;} fitem NODE *args; value_expr($6); + if (!$3) $3 = NEW_ZARRAY(); args = arg_concat($6, $3); if ($5 == tOROP) { $5 = 0; @@ -1009,6 +1010,7 @@ arg : lhs '=' arg NODE *args; value_expr($6); + if (!$3) $3 = NEW_ZARRAY(); args = arg_concat($6, $3); if ($5 == tOROP) { $5 = 0; |