diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2025-12-24 17:43:37 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2025-12-24 21:29:00 +0900 |
| commit | f00abcfdc33f7bcbf4b30c947487ade8181e84f9 (patch) | |
| tree | 81d211e17df15d035b5b3b768d6639ac3deb4cee /test/ruby | |
| parent | 17e4f28c2725495a2ff14e1899d791868d9ba42f (diff) | |
Prevent "warning: assigned but unused variable - it"
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_proc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index b50875e7b0..f74342322f 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -1838,7 +1838,7 @@ class TestProc < Test::Unit::TestCase def test_implicit_parameters_for_it_complex "foo".tap do - it = "bar" + it = it = "bar" assert_equal([], binding.implicit_parameters) assert_raise(NameError) { binding.implicit_parameter_get(:it) } @@ -1863,7 +1863,7 @@ class TestProc < Test::Unit::TestCase "foo".tap do it or flunk - it = "bar" + it = it = "bar" assert_equal([:it], binding.implicit_parameters) assert_equal("foo", binding.implicit_parameter_get(:it)) |
