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:
@@ -4162,7 +4162,7 @@ ConstraintSystem::simplifyOpenedExistentialOfConstraint(
|
||||
instanceTy = metaTy->getInstanceType();
|
||||
}
|
||||
assert(instanceTy->isExistentialType());
|
||||
Type openedTy = ArchetypeType::getOpened(instanceTy);
|
||||
Type openedTy = OpenedArchetypeType::get(instanceTy);
|
||||
if (isMetatype)
|
||||
openedTy = MetatypeType::get(openedTy, TC.Context);
|
||||
return matchTypes(type1, openedTy, ConstraintKind::Bind, subflags, locator);
|
||||
|
||||
Reference in New Issue
Block a user