mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Consider a signature with a conformance requirement, and two identical superclass requirements, both of which make the conformance requirement redundant. The conformance will have two requirement sources, the explicit source and a derived source based on one of the two superclass requirements, whichever one was processed first. If we end up marking the *other* superclass requirement as redundant, we would incorrectly conclude that the conformance was not redundant. Instead, if a derived source is based on a redundant requirement, we can't just discard it right away; instead, we have to check if that source could have been derived some other way.
6.4 KiB
6.4 KiB