Add test for issue #750.

This commit is contained in:
Masamitsu MURASE
2013-01-20 01:49:52 +09:00
parent 0dd9a0fd6a
commit 8f8d9fd41a
+8
View File
@@ -332,6 +332,14 @@ assert('BS Block [ruby-dev:31160]') do
m {|(v,(*))|} == nil
end
assert('BS Block [issue #750]') do
def m(a, *b)
yield
end
args = [1, 2, 3]
m(*args){ 1 } == 1
end
assert('BS Block 31') do
def m()
yield