ruby-changes:69668
From: Yusuke <ko1@a...>
Date: Tue, 9 Nov 2021 17:31:52 +0900 (JST)
Subject: [ruby-changes:69668] 54bda176c6 (master): test/ruby/test_iseq.rb: Prevent a warning
https://git.ruby-lang.org/ruby.git/commit/?id=54bda176c6 From 54bda176c6f1274c2311b02badee34002e4ea10e Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> 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 2b3282d5fb8..692549efa03 100644 --- a/test/ruby/test_iseq.rb +++ b/test/ruby/test_iseq.rb @@ -107,7 +107,7 @@ class TestISeq < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_iseq.rb#L107 def test_super_with_block_and_kwrest iseq = compile(<<~EOF) - def touch(**) # :nodoc: + def touch2(**) # :nodoc: foo { super } end 42 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/