What happens when a protocol is constrained to inherit from a class?

Just a warning: Use where Self : SomeClass on your own risk since this feature is not really implemented and is just a side-effect of class constrained existentials. When this feature will be properly implemented the syntax will be similar to normal inheritence protocol MyProto : SomeClass. That said, I encourage you to remove such constraints and wait until this feature is officially implemented.

2 Likes