1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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/trunk@11954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-03-01 12:38:05 +00:00
parent 75129a3608
commit cd725929d7
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Mar 1 21:38:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (stmt, arg): should not omit lhs of OP_ASGN1 even if
empty. [ruby-dev:30452]
Thu Mar 1 02:55:25 2007 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/digest.c (get_digest_base_metadata): Allow inheriting

View file

@ -996,6 +996,7 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
NODE *args = $3;
value_expr($6);
if (!$3) $3 = NEW_ZARRAY();
args = arg_concat($6, $3);
if ($5 == tOROP) {
$5 = 0;
@ -1778,6 +1779,7 @@ arg : lhs '=' arg
NODE *args;
value_expr($6);
if (!$3) $3 = NEW_ZARRAY();
args = arg_concat($6, $3);
if ($5 == tOROP) {
$5 = 0;