diff options
-rw-r--r-- | bootstraptest/test_block.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb index 747a48fdaa..e93539684e 100644 --- a/bootstraptest/test_block.rb +++ b/bootstraptest/test_block.rb @@ -410,3 +410,10 @@ o = 1 o = [o, o] }; $ans } + +assert_equal '0', %q{ + def m() + yield [0] + end + m {|*,v| v}.inspect +}, '[ruby-dev:31437]' |