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

* parse.y (args): splat other than direct array literal.

[ruby-dev:39771]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-12-23 11:48:55 +00:00
parent 282a055612
commit efe97f7f7b
3 changed files with 13 additions and 5 deletions

View file

@ -1280,7 +1280,8 @@ class TestArray < Test::Unit::TestCase
def test_splat
a = [2,3]
assert_equal([1,2,3], [1, *a])
bug2401 = '[ruby-dev:39771]'
a = [2,3]
assert_equal([2,3], [*a])
assert_equal([2,3], [*a], bug2401)
end
end