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
|
obj = Object.new
|
||||||
def obj.test
|
def obj.test
|
||||||
x = nil
|
x = nil
|
||||||
y = (return until x unless x)
|
_y = (return until x unless x)
|
||||||
end
|
end
|
||||||
assert_nil obj.test, "[Bug #16695]"
|
assert_nil obj.test, "[Bug #16695]"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue