* parse.y (call_args2): nd_head of NODE_BLOCK_PASS should be a list.

[ruby-core:12850]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-10-23 04:44:15 +00:00
Родитель 22179f8124
Коммит 3980699f54
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Tue Oct 23 13:44:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (call_args2): nd_head of NODE_BLOCK_PASS should be a list.
[ruby-core:12850]
Tue Oct 23 10:42:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> Tue Oct 23 10:42:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (process_options): encoding set by command line option takes * ruby.c (process_options): encoding set by command line option takes

Просмотреть файл

@ -2341,7 +2341,7 @@ call_args2 : arg_value ',' args opt_block_arg
| arg_value ',' block_arg | arg_value ',' block_arg
{ {
/*%%%*/ /*%%%*/
$$ = arg_blk_pass($1, $3); $$ = arg_blk_pass(NEW_LIST($1), $3);
/*% /*%
$$ = arg_add_block(arg_add(arg_new(), $1), $3); $$ = arg_add_block(arg_add(arg_new(), $1), $3);
%*/ %*/