test/ruby/test_syntax.rb: avoid "warning: assigned but unused variable"
This commit is contained in:
parent
c34539d049
commit
1cbb1f1720
@ -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…
x
Reference in New Issue
Block a user