summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-01 12:38:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-01 12:38:05 +0000
commited3fdff77ef6c3904acdb276ab5a997c6c331d3a (patch)
treed3e21047c6eb1256dc9cf845331fede290eeaf70 /parse.y
parent51f9355bd6b3f81e7fbb3e7675f121ff2a99c530 (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.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index c458661890..9241220f5d 100644
--- a/parse.y
+++ b/parse.y
@@ -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;