mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (args): use splat_array.
fix: when *foo doesn't splat. [ruby-list:46517] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8b304b1bd2
commit
b7d63cbb85
3 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Nov 5 12:06:35 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* parse.y (args): use splat_array.
|
||||
fix: when *foo doesn't splat. [ruby-list:46517]
|
||||
|
||||
Thu Nov 5 11:31:23 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (CreateChild): allocate temporary buffer and use it
|
||||
|
|
2
parse.y
2
parse.y
|
@ -1455,7 +1455,7 @@ args : arg_value
|
|||
| tSTAR arg_value
|
||||
{
|
||||
/*%%%*/
|
||||
$$ = NEW_TO_ARY($2);
|
||||
$$ = splat_array($2);
|
||||
/*%
|
||||
$$ = arg_add_star(arg_new(), $2);
|
||||
%*/
|
||||
|
|
|
@ -45,5 +45,12 @@ class TestCase < Test::Unit::TestCase
|
|||
else
|
||||
assert(false)
|
||||
end
|
||||
|
||||
case "+"
|
||||
when *%w/. +/
|
||||
assert(true)
|
||||
else
|
||||
assert(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue