mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This handles the case where the left hand side of the cast is known to be class-like, and the right hand side is known at compile time to be a protocol composition type. Note that this change results in a small optimization -- a checked cast of a metatype known to be a class metatype to a class-constrained existential metatype no longer has to emit an explicit check that the source is class-constrained. Fully dynamic casts are coming up next.
32 KiB
32 KiB