Skip to content

Commit 9b150e4

Browse files
committed
Swift: Add failing test.
1 parent a5a7d27 commit 9b150e4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

swift/ql/test/library-tests/dataflow/capture/closures.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,11 @@ class S {
181181
sink(self.bf2); // $ MISSING: hasValueFlow
182182
}
183183
}
184+
185+
func multi() {
186+
var x = 0
187+
var y = source("multi", 1)
188+
var f = { () in x = y }
189+
f()
190+
sink(x) // $ MISSING: hasValueFlow=multi
191+
}

0 commit comments

Comments
 (0)