Skip to content

Commit

Permalink
test/ruby/test_iseq.rb: Prevent a warning
Browse files Browse the repository at this point in the history
http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20211109T063003Z.log.html.gz
```
[ 9898/21145] TestISeq#test_super_with_block_and_kwrest/home/chkbuild/chkbuild/tmp/build/20211109T063003Z/ruby/test/ruby/test_iseq.rb:1: warning: method redefined; discarding old touch
/home/chkbuild/chkbuild/tmp/build/20211109T063003Z/ruby/test/ruby/test_iseq.rb:1: warning: previous definition of touch was here
 = 0.00 s
```
  • Loading branch information
mame committed Nov 9, 2021
1 parent cf50f94 commit 54bda17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ruby/test_iseq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def touch(*) # :nodoc:

def test_super_with_block_and_kwrest
iseq = compile(<<~EOF)
def touch(**) # :nodoc:
def touch2(**) # :nodoc:
foo { super }
end
42
Expand Down

0 comments on commit 54bda17

Please sign in to comment.