File tree Expand file tree Collapse file tree
unified/ql/test/library-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ func t9() {
103103func t10( ) {
104104 let x = source ( " t10.1 " )
105105 let closure1 = { [ x1 = x] in
106- sink ( x1) // $ MISSING: hasValueFlow=t10.1
106+ sink ( x1) // $ hasValueFlow=t10.1
107107 }
108108 let closure2 = { [ x] in
109109 sink ( x) // $ MISSING: hasValueFlow=t10.1
Original file line number Diff line number Diff line change @@ -786,7 +786,6 @@ subpaths
786786| test.swift:214:43:214:57 | source(...) | test.swift:193:30:193:30 | s | test.swift:193:73:193:73 | s | test.swift:214:21:214:58 | asyncThrowingIdentity(...) |
787787
788788testFailures
789- | capture.swift:109:18:109:40 | // $ hasValueFlow=t10.1 | Missing result: hasValueFlow=t10.1 |
790789#select
791790| calls.swift:8:14:8:14 | x | calls.swift:10:12:10:25 | source(...) | calls.swift:8:14:8:14 | x | $@ | calls.swift:10:12:10:25 | source(...) | source(...) |
792791| calls.swift:17:10:17:17 | target(...) | calls.swift:15:16:15:29 | source(...) | calls.swift:17:10:17:17 | target(...) | $@ | calls.swift:15:16:15:29 | source(...) | source(...) |
Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ class C {
1010 }
1111
1212 func t3( ) { // implicit-self=t3.self
13- foo ( 123 ) { [ self ] in // $ captured=closure.self // name=closure.self
13+ foo ( 123 ) { [ self ] in // $ captured=closure.self access=t3.self // name=closure.self
1414 print ( self ) // $ access=closure.self
1515 print ( instanceField) // $ access=instanceField implicit-qualifier=closure.self
1616 }
1717 }
1818
1919 func t4( ) { // implicit-self=t4.self
20- foo ( 123 ) { [ weak self] in // $ captured=weak.self // name=weak.self
20+ foo ( 123 ) { [ weak self] in // $ captured=weak.self access=t4.self // name=weak.self
2121 // Here, 'self' is an Option<C> referring to .some(<outer self>) if it
2222 // has not been GC'ed yet. Swift does not allow unqualified self access here.
2323
You can’t perform that action at this time.
0 commit comments