Files
swift-mirror/test/IDE/complete_after_pattern_in_closure.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
}