Swift – associated types in protocol with where clause?

Solutions Collect From Internet About “Swift – associated types in protocol with where clause?”

Type parameterization of associated types in protocols is currently not supported in Swift (2.1).

Although in this case you don’t even need the where clause for functionality. It’s more the convenience you get where you can do this:

func someFunc<T: SomeProtocol>(someProt: T, foo: T.F) {
    ...
}

// Instead of this:

func someFunc<T: SomeProtocol>(someProt: T, foo: T.FB.Foo) {
    ...
}