Swift generics: Non-nominal type does not support explicit initialization

前端 未结 1 387
既然无缘
既然无缘 2021-01-20 15:10

So I\'m trying to understand generic protocols and classes:

protocol ListPresenterType where View.PDO.SW == Dispatcher.SW {
    associatedtype Dispatcher: Li         


        
相关标签:
1条回答
  • 2021-01-20 16:08

    So it appears that in Xcode9 (beta 6) errors like Non-nominal type '%type' does not support explicit initialization simply equals the mismatching types error in less buggy Xcode (if that's a thing): cannot invoke initializer for type '%type' with an argument list of type '...' expected an argument list of type '...'

    0 讨论(0)
提交回复
热议问题