mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Swift: Add failing test.
This commit is contained in:
@@ -181,3 +181,11 @@ class S {
|
||||
sink(self.bf2); // $ MISSING: hasValueFlow
|
||||
}
|
||||
}
|
||||
|
||||
func multi() {
|
||||
var x = 0
|
||||
var y = source("multi", 1)
|
||||
var f = { () in x = y }
|
||||
f()
|
||||
sink(x) // $ MISSING: hasValueFlow=multi
|
||||
}
|
||||
Reference in New Issue
Block a user