Ruby: Add test case: array constant barrier guard

This guard isn't yet recognised as a `StringConstArrayInclusionCall`.
This commit is contained in:
Harry Maclean
2022-01-20 17:07:01 +13:00
parent 70f4efb834
commit 13a0ece25c

View File

@@ -31,3 +31,11 @@ else
end
foo
FOO = ["foo"]
if FOO.include?(foo)
foo
else
foo
end