RequirementMachine: Pass SubstFlags::PreservePackExpansionLevel when re-sugaring requirements

This commit is contained in:
Slava Pestov
2023-09-19 14:48:42 -04:00
parent 97668d5b94
commit dc2e0c95db
2 changed files with 15 additions and 1 deletions

View File

@@ -620,7 +620,8 @@ AbstractGenericSignatureRequest::evaluate(
return Type(type);
},
MakeAbstractConformanceForGenericType(),
SubstFlags::AllowLoweredTypes);
SubstFlags::AllowLoweredTypes |
SubstFlags::PreservePackExpansionLevel);
resugaredRequirements.push_back(resugaredReq);
}