diff options
Diffstat (limited to 'bootstraptest/test_block.rb')
-rw-r--r-- | bootstraptest/test_block.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb index e20f5937d7..21d13439ad 100644 --- a/bootstraptest/test_block.rb +++ b/bootstraptest/test_block.rb @@ -335,3 +335,11 @@ assert_equal %q{[1, nil]}, %q{ [i, j] } } + +# [ruby-dev:31147] +assert_equal 'nil', %q{ + def m + yield + end + m{|&b| b}.inspect +} |