We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93234c0 commit 65e13aaCopy full SHA for 65e13aa
1 file changed
swift/ql/test/library-tests/dataflow/capture/closures.swift
@@ -15,6 +15,13 @@ func captureList() {
15
}()
16
}
17
18
+func withoutCaptureList() {
19
+ let y: Int = source("withoutCaptureList", 124);
20
+ { [] () in
21
+ sink(y) // $ hasValueFlow=withoutCaptureList
22
+ }()
23
+}
24
+
25
func setAndCallEscape() {
26
let x = source("setAndCallEscape", 0)
27
0 commit comments