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:
parent
c34539d049
commit
1cbb1f1720
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue