mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
If two conformances imply a conformance to the same marker protocol, don't diagnose redundancy if they differ by unavailability. Instead, allow the more available conformance to win. This allows declaring a type that conforms to a protocol that inherits from SendableMetatype, followed by an unavailable Sendable conformance on the same type. Fixes rdar://152509409.
1.7 KiB
1.7 KiB