Skip to content

Commit 6ea146f

Browse files
committed
unified: Fix broken block syntax
The original test was not valid Swift syntax
1 parent a86c7ba commit 6ea146f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ func t6(x: Int) -> Int { // name=x1
4040

4141
// Nested blocks
4242
func t7() {
43-
let x = 1 // name=x1
44-
{
45-
print(x) // $ MISSING: access=x1
43+
let x = 1; // name=x1
44+
do {
45+
print(x) // $ access=x1
4646
let x = 2 // name=x2
4747
print(x) // $ access=x2
4848
}

0 commit comments

Comments
 (0)