Files
swift-mirror/validation-test/IDE/issues_fixed/issue-57148.swift
Alex Hoppen 423826f742 [CodeComplete] Add test case for #57148, #57149
The issue no longer occurs on `main`. Add a test case for it.

Fixes #57148
Fixes #57149
2023-11-23 18:01:03 -08:00

17 lines
460 B
Swift

// RUN: %batch-code-completion
protocol MyProtocol {}
struct MyStruct: MyProtocol {
func aspectRatio(contentMode: Int) -> MyStruct { fatalError() }
}
func foo<I>(content: (MyStruct) -> I) where I : MyProtocol { fatalError() }
func bazx() {
foo() { image in
image.aspectRatio(#^COMPLETE^#)
}
}
// COMPLETE: Decl[InstanceMethod]/CurrNominal/Flair[ArgLabels]/TypeRelation[Convertible]: ['(']{#contentMode: Int#}[')'][#MyStruct#]; name=contentMode: