mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ConstraintSystem] Strip pack expansions off of pack reference types in
getUnopenedTypeOfReference.
This commit is contained in:
@@ -8613,8 +8613,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;
|
||||
|
||||
Reference in New Issue
Block a user