Merge pull request #62713 from hborla/open-pack-element-type-repr

[ConstraintSystem] Enable pack element type reprs in expressions.
This commit is contained in:
Holly Borla
2022-12-21 10:48:42 -05:00
committed by GitHub
20 changed files with 304 additions and 94 deletions

View File

@@ -8612,8 +8612,6 @@ ConstraintSystem::simplifyPackElementOfConstraint(Type first, Type second,
// This constraint only exists to vend bindings.
auto *packEnv = DC->getGenericEnvironmentOfContext();
if (auto *expansion = packType->getAs<PackExpansionType>())
packType = expansion->getPatternType();
if (packType->isEqual(packEnv->mapElementTypeIntoPackContext
(elementType->mapTypeOutOfContext()))) {
return SolutionKind::Solved;