Files
swift-mirror/validation-test/IDE/crashers_fixed/0033-trailing-closure-arg-label-matching.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +01:00

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