mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When an extension introduces a conformance that already exists, the type checker will reject the conformance and then ignore it. In cases where the original conformance is in the same module as the type or protocol (but the new, redundant conformance is in some other module), downgrade this error to a warning. This helps with library-evolution cases where a library omitted a particular conformance for one of its own types/protocols in a previous version, then introduces it in a new version. The specific driver for this is the conformance of String to Collection, which affects source compatibility. Fixes rdar://problem/31104415.
572 B
572 B