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 b27fd2b commit a2ee7f2Copy full SHA for a2ee7f2
lib/Sema/CSApply.cpp
@@ -1189,10 +1189,12 @@ namespace {
1189
// Here `P.foo` would be replaced with `S.foo`
1190
if (!isExistentialMetatype && baseTy->is<ProtocolType>() &&
1191
member->isStatic()) {
1192
+ auto selfParam =
1193
+ overload.openedFullType->castTo<FunctionType>()->getParams()[0];
1194
+
1195
Type baseTy =
- simplifyType(openedType->is<FunctionType>()
- ? openedType->castTo<FunctionType>()->getResult()
- : openedType);
1196
+ simplifyType(selfParam.getPlainType())->getMetatypeInstanceType();
1197
1198
base = TypeExpr::createImplicitHack(base->getLoc(), baseTy, context);
1199
cs.cacheType(base);
1200
}
0 commit comments