File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -4286,11 +4286,13 @@ SILGenModule::emitKeyPathComponentForDecl(SILLocation loc,
4286
4286
// The mapTypeIntoContext() / mapTypeOutOfContext() dance is there
4287
4287
// to handle the case where baseTy being a type parameter subject
4288
4288
// to a superclass requirement.
4289
- componentTy = var->getValueInterfaceType ().subst (
4290
- GenericEnvironment::mapTypeIntoContext (genericEnv, baseTy)
4291
- ->getContextSubstitutionMap (var->getDeclContext ()))
4292
- ->mapTypeOutOfContext ()
4293
- ->getCanonicalType ();
4289
+ componentTy =
4290
+ var->getValueInterfaceType ()
4291
+ .subst (GenericEnvironment::mapTypeIntoContext (
4292
+ genericEnv, baseTy->getMetatypeInstanceType ())
4293
+ ->getContextSubstitutionMap (var->getDeclContext ()))
4294
+ ->mapTypeOutOfContext ()
4295
+ ->getCanonicalType ();
4294
4296
}
4295
4297
4296
4298
// The component type for an @objc optional requirement needs to be
You can’t perform that action at this time.
0 commit comments