Generic Protocols with Associated Type
Bob Lee

Hey Bob,

Just wanted to say thank you for all of these awesome articles. I just started working with Swift 4 months ago and have found your tutorials super relevant and easy to follow.

While following along I came across an error under Multiple Where Conditions with Self. Xcode doesn’t seem to like “Self == SomeStruct” and gave the following error. “Same-type requirement makes generic parameter ‘Self’ non-generic”

I’ve read that you can’t constrain generic types so tightly that they would become non-generic (using ==). But that article was written back in 2015. Any help is much appreciated.

Thank you for taking the time to read my comment. Keep up the great work. OuOb

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.