Skip to content

Commit e7bff85

Browse files
committed
unified: More fixes in test cases
1 parent 6ea146f commit e7bff85

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

unified/ql/test/library-tests/variables/test.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ func t27(opt: Int?) { // name=opt1
241241
}
242242

243243
// if with multiple let bindings and a boolean condition
244-
func t28(a: Int?, b: Int?) { // name=a1 // name=b1
245-
if let x = a, // $ access=a1 SPURIOUS: access=b1
246-
let y = b, // $ access=b1 SPURIOUS: access=a1
244+
func t28(a: Int?, b: Int?) {
245+
if let x = a, // $ access=a
246+
let y = b, // $ access=b
247247
x < y { // $ $ access=x access=y
248248
print(x) // $ access=x
249249
print(y) // $ access=y
@@ -270,9 +270,9 @@ func t30(opt: Int?) { // name=opt1
270270
}
271271

272272
// guard with multiple let bindings and a boolean condition
273-
func t31(a: Int?, b: Int?) { // name=a1 // name=b1
274-
guard let x = a, // $ access=a1 SPURIOUS: access=b1
275-
let y = b, // $ access=b1 SPURIOUS: access=a1
273+
func t31(a: Int?, b: Int?) {
274+
guard let x = a, // $ access=a
275+
let y = b, // $ access=b
276276
x < y else { // $ $ access=x access=y
277277
return
278278
}
@@ -292,7 +292,7 @@ func t32(opt: Int?) { // name=opt1
292292
func t33() {
293293
let x = 1 // name=x1
294294
guard x > 0, // $ access=x1
295-
let x = x, // $ MISSING: access=x2 SPURIOUS: access=x1 // name=x2
295+
let x = x, // $ access=x1 // name=x2
296296
x > 0 else { // $ access=x2
297297
return
298298
}

0 commit comments

Comments
 (0)