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 da49310 commit 866737eCopy full SHA for 866737e
lib/SIL/IR/SILTypeSubstitution.cpp
@@ -273,9 +273,10 @@ class SILTypeSubstituter :
273
// Substitute the underlying conformance of opaque type archetypes if we
274
// should look through opaque archetypes.
275
if (typeExpansionContext.shouldLookThroughOpaqueTypeArchetypes()) {
276
- auto substType = IFS.withNewOptions(std::nullopt, [&] {
277
- return selfType.subst(IFS)->getCanonicalType();
278
- });
+ auto substType = IFS.withNewOptions(
+ SubstFlags::PreservePackExpansionLevel, [&] {
+ return selfType.subst(IFS)->getCanonicalType();
279
+ });
280
if (substType->hasOpaqueArchetype()) {
281
substConformance = substOpaqueTypesWithUnderlyingTypes(
282
substConformance, typeExpansionContext);
0 commit comments