mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
If we have no substitution map, we still substitute types appearing in the original function, because we need to remap any local archetypes, which are always cloned. However, the conformance lookup callback used for this substitution was wrong. We should only do mapTypeOutOfContext() if we're going to callSubstitutionMap::lookupConformance(), otherwise we form a new abstract conformance with an interface type, and not a primary archetype as expected.
156 KiB
156 KiB