mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Prior to the introduction of noncopyable generics, a ProtocolCompositionType was 'simple' if it was exactly 'Any' or 'AnyObject'. Now, there is a new simple case, where we have a single inverse requirement '~Copyable' or '~Escapable', and the old logic was never updated to account for this possibility. Instead, it would ignore inverses, so it would claim that a composition like `P & ~Copyable` was simple when it shouldn't be. Fixes rdar://139465298.
2.4 KiB
2.4 KiB