mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/ruby/test_method_cache.rb: suppress "assigned but unused variable"
This commit is contained in:
parent
53edb27bac
commit
ab869d6b9b
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ class TestMethodCache < Test::Unit::TestCase
|
|||
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
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue