diff --git a/lib/Sema/CSSimplify.cpp b/lib/Sema/CSSimplify.cpp index 014376fba9c..89211198b11 100644 --- a/lib/Sema/CSSimplify.cpp +++ b/lib/Sema/CSSimplify.cpp @@ -11619,17 +11619,6 @@ bool ConstraintSystem::resolvePackExpansion(TypeVariableType *typeVar, .getOpenedType(); assignFixedType(typeVar, openedExpansionType, locator); - - // We have a fully resolved contextual pack expansion type, let's - // apply it right away. - if (!contextualType->isEqual(openedExpansionType)) { - assert(contextualType->is() && - !contextualType->hasTypeVariable()); - auto result = matchTypes(openedExpansionType, contextualType, - ConstraintKind::Equal, {}, locator); - return !result.isFailure(); - } - return true; }