We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 966c6f1 commit 325b451Copy full SHA for 325b451
1 file changed
ruby/ql/test/library-tests/dataflow/barrier-guards/barrier-guards.rb
@@ -38,4 +38,27 @@
38
foo
39
else
40
41
-end
+end
42
+
43
+if foo == "foo"
44
+ capture {
45
+ foo # guarded
46
+ }
47
48
49
50
51
+ foo = "bar"
52
+ foo # not guarded
53
54
55
56
57
+ my_lambda = -> () {
58
59
60
61
62
63
+ my_lambda()
64
0 commit comments