mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
More groundwork for protocols with superclass constraints. In several places we need to distinguish between existential types that have a superclass term (MyClass & Proto) and existential types containing a protocol with a superclass constraint. This is similar to how I can write 'AnyObject & Proto', or write 'Proto1 & Proto2' where Proto1 has an ': AnyObject' in its inheritance clause. Note that some of the usages will be revisited later as I do more refactoring and testing. This is just a first pass.
51 KiB
51 KiB