mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
17 lines
462 B
Swift
17 lines
462 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t -enable-experimental-concurrency
|
|
|
|
func makeURL(withExtension ext: Int?) -> Int? {
|
|
return nil
|
|
}
|
|
|
|
func test() {
|
|
let calculatorContext: Int? = {
|
|
guard let url#^COMPLETE^# = makeURL(withExtension: 1),
|
|
let script = url else {
|
|
return nil
|
|
}
|
|
}()
|
|
// COMPLETE-NOT: Begin completions
|
|
}
|