File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -4325,15 +4325,9 @@ Type constraints::getConcreteReplacementForProtocolSelfType(ValueDecl *member) {
4325
4325
if (!DC->getSelfProtocolDecl ())
4326
4326
return Type ();
4327
4327
4328
- GenericSignature signature;
4329
- if (auto *genericContext = member->getAsGenericContext ()) {
4330
- signature = genericContext->getGenericSignature ();
4331
- } else {
4332
- signature = DC->getGenericSignatureOfContext ();
4333
- }
4334
-
4328
+ auto sig = member->getInnermostDeclContext ()->getGenericSignatureOfContext ();
4335
4329
auto selfTy = DC->getSelfInterfaceType ();
4336
- return signature ->getConcreteType (selfTy);
4330
+ return sig ->getConcreteType (selfTy);
4337
4331
}
4338
4332
4339
4333
static bool isOperator (Expr *expr, StringRef expectedName) {
You can’t perform that action at this time.
0 commit comments