1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/ruby/test_syntax.rb: avoid "warning: assigned but unused variable"

This commit is contained in:
Yusuke Endoh 2020-10-16 11:10:58 +09:00
parent c34539d049
commit 1cbb1f1720

View file

@ -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