diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-01 07:52:34 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-01 07:52:34 +0000 |
| commit | e2688b5630000b3a783fcf7be9ecd6414f2fe918 (patch) | |
| tree | b75fbbcd3feb97dacbd25919695cd0e09845713d /parse.y | |
| parent | a7cf78ec312b0f5a2030e2be1fcb1391a7b70f56 (diff) | |
| download | ruby-e2688b5630000b3a783fcf7be9ecd6414f2fe918.tar.gz ruby-e2688b5630000b3a783fcf7be9ecd6414f2fe918.tar.xz ruby-e2688b5630000b3a783fcf7be9ecd6414f2fe918.zip | |
* parse.y (call_args2): confusion with list_append() and
list_concat() was fixed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1018,7 +1018,7 @@ call_args : command call_args2 : arg ',' args opt_block_arg { - $$ = arg_blk_pass(list_append(NEW_LIST($1),$3), $4); + $$ = arg_blk_pass(list_concat(NEW_LIST($1),$3), $4); } | arg ',' tSTAR arg opt_block_arg { @@ -1031,7 +1031,7 @@ call_args2 : arg ',' args opt_block_arg { value_expr($1); value_expr($6); - $$ = arg_concat(list_append($1,$3), $6); + $$ = arg_concat(list_concat($1,$3), $6); $$ = arg_blk_pass($$, $7); } | assocs opt_block_arg @@ -1054,7 +1054,7 @@ call_args2 : arg ',' args opt_block_arg { value_expr($1); value_expr($6); - $$ = list_append(list_append($1,$3), NEW_HASH($5)); + $$ = list_append(list_concat($1,$3), NEW_HASH($5)); $$ = arg_blk_pass($$, $6); } | arg ',' assocs ',' tSTAR arg opt_block_arg @@ -1068,7 +1068,7 @@ call_args2 : arg ',' args opt_block_arg { value_expr($1); value_expr($8); - $$ = arg_concat(list_append(list_append(NEW_LIST($1), $3), NEW_HASH($5)), $8); + $$ = arg_concat(list_append(list_concat(NEW_LIST($1), $3), NEW_HASH($5)), $8); $$ = arg_blk_pass($$, $9); } | tSTAR arg opt_block_arg |
