mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
ruby: add test for for
found during triage
This commit is contained in:
@@ -67,4 +67,11 @@ def test_loop
|
||||
end
|
||||
end until a # OK
|
||||
a # OK - given previous until
|
||||
end
|
||||
|
||||
def test_for
|
||||
for i in 0..10 #$ SPURIOUS: Alert
|
||||
i
|
||||
end
|
||||
i #$ SPURIOUS: Alert
|
||||
end
|
||||
Reference in New Issue
Block a user