Skip to content

Commit 33c773d

Browse files
committed
unified: Add variable shadowing local function
1 parent 602917a commit 33c773d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ func t22() {
187187
}
188188
inner() // $ access=inner1
189189
print(x) // $ access=x1
190+
let inner = 2 // name=inner2
191+
print(inner) // $ access=inner2
190192
}
191193

192194
// Three levels of shadowing

0 commit comments

Comments
 (0)