Why can this protocol “only be used as a generic constraint”?

前端 未结 2 1513
花落未央
花落未央 2021-02-01 16:44

I\'m attempting to do the following in Swift:

protocol ProtocolWithAlias {
    typealias T
}

protocol AnotherProtocol {
    func someFunc() -> ProtocolWithAl         


        
2条回答
提交回复
热议问题