We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2465cc2 commit 2ad121aCopy full SHA for 2ad121a
1 file changed
swift/ql/test/library-tests/dataflow/capture/closures.swift
@@ -97,7 +97,7 @@ func baz() -> () -> Int {
97
return r
98
}
99
100
-func sharedCapture() -> Int {
+func sharedCapture() {
101
let (incrX, getX) = {
102
var x = source("sharedCapture", 0)
103
return ({ x += 1 }, { x })
@@ -111,8 +111,6 @@ func sharedCapture() -> Int {
111
sink(getX()) // $ MISSING: hasValueFlow=sharedCapture
112
doubleIncrX()
113
sink(getX()) // $ MISSING: hasTaintFlow=sharedCapture
114
- doubleIncrX()
115
- return getX()
116
117
118
func sharedCaptureMultipleWriters() {
0 commit comments