// RUN: %target-swift-frontend -emit-sil %s // https://github.com/apple/swift/issues/50711 protocol SignalInterface { associatedtype OutputValue } class Signal: SignalInterface { typealias OutputValue = OV } extension Signal { func foo(_: U) -> SignalChannel<[U], Signal>> where OutputValue == Optional { return SignalChannel() } } struct SignalChannel> { }