mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously we were defaulting to the method's interface type, which could lead to calling `subst` with a GenericFunctionType. Instead, pass the result type only, as that's all we want anyway. rdar://77259607
10 lines
200 B
Swift
10 lines
200 B
Swift
// RUN: %target-swift-ide-test -conforming-methods -source-filename %s -code-completion-token=CC
|
|
|
|
protocol MyView {}
|
|
|
|
extension MyView {
|
|
func foo<Content>() -> Content? {
|
|
return nil#^CC^#
|
|
}
|
|
}
|