mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Pass SubstFlags::PreservePackExpansionLevel in a few more places
This commit is contained in:
@@ -1633,7 +1633,9 @@ SwiftDeclCollector::constructTypeNode(Type T, TypeInitInfo Info) {
|
||||
ReplaceOpaqueTypesWithUnderlyingTypes replacer(
|
||||
/*inContext=*/nullptr, ResilienceExpansion::Maximal,
|
||||
/*isWholeModuleContext=*/false);
|
||||
T = T.subst(replacer, replacer, SubstFlags::SubstituteOpaqueArchetypes)
|
||||
T = T.subst(replacer, replacer,
|
||||
SubstFlags::SubstituteOpaqueArchetypes |
|
||||
SubstFlags::PreservePackExpansionLevel)
|
||||
->getCanonicalType();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user