mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
279 B
Swift
15 lines
279 B
Swift
// RUN: %batch-code-completion
|
|
|
|
func run(execute workItem: Int) {}
|
|
func run(execute work: () -> Void) {}
|
|
|
|
func test(myVar: Int) {
|
|
run {
|
|
guard let data = #^COMPLETE^# else {
|
|
return
|
|
}
|
|
}
|
|
}
|
|
|
|
// COMPLETE: Decl[LocalVar]/Local: myVar[#Int#]; name=myVar
|