Merge pull request #75857 from hamishknight/bounding

[test] Add test case for rdar://133460404
This commit is contained in:
Hamish Knight
2024-08-13 19:15:04 +01:00
committed by GitHub

View File

@@ -0,0 +1,11 @@
// RUN: %batch-code-completion
// rdar://133460404 - Make sure we complete for the rebound local variable.
func bar() {
var foo: Int?
if let foo = foo {
let foo = ""
#^COMPLETE^#
}
}
// COMPLETE: Decl[LocalVar]/Local: foo[#String#]; name=foo