We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8336c2 commit 00fd686Copy full SHA for 00fd686
lib/SIL/IR/SILTypeSubstitution.cpp
@@ -348,6 +348,8 @@ class SILTypeSubstituter :
348
[&](Type substExpansionShape) {
349
CanType substComponentType = visit(origType.getPatternType());
350
if (substExpansionShape) {
351
+ if (auto packArchetype = substExpansionShape->getAs<PackArchetypeType>())
352
+ substExpansionShape = packArchetype->getReducedShape();
353
substComponentType = CanPackExpansionType::get(substComponentType,
354
substExpansionShape->getCanonicalType());
355
}
0 commit comments