diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-11-09 17:31:17 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-11-09 17:31:17 +0900 |
commit | 54bda176c6f1274c2311b02badee34002e4ea10e (patch) | |
tree | 676fd1c62716fdf8592472380361cc342b9c88d7 | |
parent | cf50f9484af9b7aa5afd7a342026d86d1906c423 (diff) |
test/ruby/test_iseq.rb: Prevent a warning
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
```
-rw-r--r-- | test/ruby/test_iseq.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb index 2b3282d5fb..692549efa0 100644 --- a/test/ruby/test_iseq.rb +++ b/test/ruby/test_iseq.rb @@ -107,7 +107,7 @@ class TestISeq < Test::Unit::TestCase def test_super_with_block_and_kwrest iseq = compile(<<~EOF) - def touch(**) # :nodoc: + def touch2(**) # :nodoc: foo { super } end 42 |