mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #75857 from hamishknight/bounding
[test] Add test case for rdar://133460404
This commit is contained in:
11
test/IDE/complete_rdar133460404.swift
Normal file
11
test/IDE/complete_rdar133460404.swift
Normal 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
|
||||
Reference in New Issue
Block a user