mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Push ArchetypeType's API down to subclasses.
And clean up code that conditionally works only with certain kinds of archetype along the way.
This commit is contained in:
@@ -1322,7 +1322,7 @@ ConstraintSystem::getTypeOfMemberReference(
|
||||
Type baseOpenedTy = baseObjTy;
|
||||
|
||||
if (baseObjTy->isExistentialType()) {
|
||||
ArchetypeType *openedArchetype = ArchetypeType::getOpened(baseObjTy);
|
||||
auto openedArchetype = OpenedArchetypeType::get(baseObjTy);
|
||||
OpenedExistentialTypes.push_back({ getConstraintLocator(locator),
|
||||
openedArchetype });
|
||||
baseOpenedTy = openedArchetype;
|
||||
|
||||
Reference in New Issue
Block a user