mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
PotentialArchetype::getNestedType() was effectively reimplementing a simplified form of mapTypeOutOfContext(), missing some cases in the process. Just use mapTypeOutOfContext() and resolveArchetype(). While here, stop re-implementing the addSameType* operations; just call them directly. With these changes, we no longer need the "typealias in protocol is too complex" diagnostic. Eliminates another use of getSelfTypeInContext().
47 KiB
47 KiB