Consider the following:
protocol SomeProtocol { typealias F: Foo typealias FB: FooBar where FB.Foo == F }
But this does not compile, since we cannot put the where clause in typealias .
I need to skip something, as this can be easily done with type parameterization as follows:
struct SomeStruct<F: Foo, FB: FooBar where FB.Foo == F> {}
What is equivalent to where for associated type ?
source share