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

test/ruby: suppress parser warnings

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-02-19 07:48:02 +00:00
parent 311b715483
commit 41f4317f45
31 changed files with 103 additions and 90 deletions

View file

@ -61,9 +61,9 @@ class TestLambdaParameters < Test::Unit::TestCase
assert_equal(nil, ->(&b){ b }.call)
foo { puts "bogus block " }
assert_equal(1, ->(&b){ b.call }.call { 1 })
b = nil
assert_equal(1, ->(&b){ b.call }.call { 1 })
assert_nil(b)
_b = nil
assert_equal(1, ->(&_b){ _b.call }.call { 1 })
assert_nil(_b)
end
def test_call_block_from_lambda