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.
getInnermostDeclContext
1 parent 02d2b4a commit 8ccd658Copy full SHA for 8ccd658
lib/IDE/IDETypeChecking.cpp
@@ -327,8 +327,7 @@ struct SynthesizedExtensionAnalyzer::Implementation {
327
auto handleRequirements = [&](SubstitutionMap subMap,
328
ExtensionDecl *OwningExt,
329
ArrayRef<Requirement> Reqs) {
330
- ProtocolDecl *BaseProto = OwningExt->getInnermostDeclContext()
331
- ->getSelfProtocolDecl();
+ ProtocolDecl *BaseProto = OwningExt->getSelfProtocolDecl();
332
for (auto Req : Reqs) {
333
// Skip protocol's Self : <Protocol> requirement.
334
if (BaseProto &&
0 commit comments