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 4f42c55 commit f61d8c5Copy full SHA for f61d8c5
lib/SILGen/SILGenConstructor.cpp
@@ -284,17 +284,7 @@ static SubstitutionMap getSubstitutionsForPropertyInitializer(
284
// replacement types are the archetypes of the initializer itself.
285
return SubstitutionMap::get(
286
nominal->getGenericSignatureOfContext(),
287
- [&](SubstitutableType *type) -> Type {
288
- if (auto gp = type->getAs<GenericTypeParamType>()) {
289
- auto archetype = genericEnv->mapTypeIntoContext(gp);
290
- if (!gp->isParameterPack())
291
- return archetype;
292
-
293
- return PackType::getSingletonPackExpansion(archetype);
294
- }
295
296
- return Type(type);
297
- },
+ QuerySubstitutionMap{genericEnv->getForwardingSubstitutionMap()},
298
LookUpConformanceInModule(dc->getParentModule()));
299
}
300
0 commit comments