mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
460 B
Swift
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:
|