mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This consolidates calculations which need to look at every protocol in an existential type. Soon we will also have to deal with superclass constrained existentials, so start updating call sites that look at all protocols to use the new ExistentialLayout and correctly handle a class constraint as well. Also, eventually I will kill off the AnyObject protocol and model it as a protocol composition with no protocols or superclass, but the requiresClass() flag set. This is not quite modeled this way yet and AnyObject still exists, but the new abstraction is a step in the right direction.
50 KiB
50 KiB