Skip to content

Commit 647657c

Browse files
authored
Merge pull request #75857 from hamishknight/bounding
[test] Add test case for rdar://133460404
2 parents 3b093d7 + 34578b2 commit 647657c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/IDE/complete_rdar133460404.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// RUN: %batch-code-completion
2+
3+
// rdar://133460404 - Make sure we complete for the rebound local variable.
4+
func bar() {
5+
var foo: Int?
6+
if let foo = foo {
7+
let foo = ""
8+
#^COMPLETE^#
9+
}
10+
}
11+
// COMPLETE: Decl[LocalVar]/Local: foo[#String#]; name=foo

0 commit comments

Comments
 (0)