diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-10-16 11:10:58 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-10-16 11:10:58 +0900 |
commit | 1cbb1f1720127b0b34b38c77e27b51b182008699 (patch) | |
tree | 368aa90fa644c133a35d50c1577550b547635ef8 /test | |
parent | c34539d049fa9593f6866de5bf8efbeb77fa32d4 (diff) | |
download | ruby-1cbb1f1720127b0b34b38c77e27b51b182008699.tar.gz |
test/ruby/test_syntax.rb: avoid "warning: assigned but unused variable"
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_syntax.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 64405a37e9..2e0d306c21 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1392,7 +1392,7 @@ eom obj = Object.new def obj.test x = nil - y = (return until x unless x) + _y = (return until x unless x) end assert_nil obj.test, "[Bug #16695]" end |