mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
12 lines
470 B
Swift
12 lines
470 B
Swift
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE | %FileCheck %s
|
|
|
|
func foo() {
|
|
_ = sink { items in }#^COMPLETE^#
|
|
}
|
|
|
|
func sink(receiveCompletion: (Int) -> Void, receiveValue: (Int) -> Void) { fatalError() }
|
|
|
|
// CHECK: Begin completions, 2 items
|
|
// CHECK-DAG: Pattern/Local/Flair[ArgLabels]: {#receiveValue: (Int) -> Void {<#Int#> in|}#}[#(Int) -> Void#];
|
|
// CHECK-DAG: Keyword[self]/CurrNominal: .self[#Void#]; name=self
|