mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We rebuild a signature after dropping redundant conformance requirements, since conformance requirements change the canonical type and conformance access path computation. When doing this, instead of using the canonical requirements from the signature, use the original as-written requirements. This fixes some weirdness around concrete same-type requirements. There's a philosophical benefit here too -- since we rebuild the signature without ever having built the old signature, we never create an invalid GenericSignature in the ASTContext. Fixes rdar://problem/75690903.
2.8 KiB
2.8 KiB