mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby: get rid of warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
01740f0c27
commit
9194b220a5
13 changed files with 20 additions and 23 deletions
|
@ -91,7 +91,7 @@ class TestLambdaParameters < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def return_in_current(val)
|
||||
1.tap &->(*) {return 0}
|
||||
1.tap(&->(*) {return 0})
|
||||
val
|
||||
end
|
||||
|
||||
|
@ -100,7 +100,7 @@ class TestLambdaParameters < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def return_in_callee(val)
|
||||
yield_block &->(*) {return 0}
|
||||
yield_block(&->(*) {return 0})
|
||||
val
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue