Files
swift-mirror/test/IDE/conforming-methods-rdar77259607.swift
Hamish Knight 7302792506 [IDE] Use method result type for getTypeOfMember call
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
2021-07-20 14:11:30 +01:00

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^#
}
}