From 54bda176c6f1274c2311b02badee34002e4ea10e Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Tue, 9 Nov 2021 17:31:17 +0900 Subject: 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 ``` --- test/ruby/test_iseq.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3