mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A new SubstitutionMap::getProtocolSubstitutions() method handles the case where we construct a trivial SubstitutionMap to replace the protocol Self type with a concrete type. When substituting one opened existential archetype for another, use the form of Type::subst() that takes two callbacks instead of building a SubstitutionMap. SubstitutionMaps are intended to be used with keys that either come from a GenericSignature or a GenericEnvironment, so using them to replace opened archetypes doesn't fit the conceptual model we're going for.
42 KiB
42 KiB