ruby-changes:64138
From: Yusuke <ko1@a...>
Date: Mon, 14 Dec 2020 16:04:44 +0900 (JST)
Subject: [ruby-changes:64138] ab869d6b9b (master): test/ruby/test_method_cache.rb: suppress "assigned but unused variable"
https://git.ruby-lang.org/ruby.git/commit/?id=ab869d6b9b From ab869d6b9ba07fa9453d39902d8641c3db485b76 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Mon, 14 Dec 2020 15:56:13 +0900 Subject: test/ruby/test_method_cache.rb: suppress "assigned but unused variable" diff --git a/test/ruby/test_method_cache.rb b/test/ruby/test_method_cache.rb index f3b38f1..a8e7e22 100644 --- a/test/ruby/test_method_cache.rb +++ b/test/ruby/test_method_cache.rb @@ -27,7 +27,7 @@ class TestMethodCache < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method_cache.rb#L27 undef foo end - c1 = Class.new(c0) + _c1 = Class.new(c0) assert_raise(NoMethodError) do c0.new.foo @@ -45,7 +45,7 @@ class TestMethodCache < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method_cache.rb#L45 c1 = Class.new(c0){ undef foo } c2 = Class.new(c1) c3 = Class.new(c2) - c4 = Class.new(c3) + _c4 = Class.new(c3) assert_raise(NoMethodError) do c3.new.foo -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/