mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Give opened archetypes a generic environment.
And maybe allow nested types to live on them.
This commit is contained in:
@@ -122,7 +122,9 @@ Type GenericEnvironment::mapTypeIntoContext(GenericEnvironment *env,
|
||||
}
|
||||
|
||||
Type MapTypeOutOfContext::operator()(SubstitutableType *type) const {
|
||||
return cast<ArchetypeType>(type)->getInterfaceType();
|
||||
auto archetype = cast<ArchetypeType>(type);
|
||||
|
||||
return archetype->getInterfaceType();
|
||||
}
|
||||
|
||||
Type TypeBase::mapTypeOutOfContext() {
|
||||
|
||||
Reference in New Issue
Block a user