Skip to content

Commit 9ee831a

Browse files
committed
Ruby: Add (failing) test case for flow out via assignment expression.
1 parent 82bbe67 commit 9ee831a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ruby/ql/test/library-tests/dataflow/global/instance_variables.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,8 @@ def set_field_on x
7777
foo12 = Foo.new
7878
set_field_on (foo12) # space after `set_field_on` is important for this test
7979
sink(foo12.get_field) # $ hasValueFlow=28
80+
81+
foo13 = Foo.new
82+
foo14 = Foo.new
83+
set_field_on(foo14 = foo13)
84+
sink(foo13.get_field) # $ hasValueFlow=28

0 commit comments

Comments
 (0)