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 c677d14 commit 9f55decCopy full SHA for 9f55dec
lib/AST/DeclContext.cpp
@@ -658,7 +658,7 @@ unsigned DeclContext::getSyntacticDepth() const {
658
659
unsigned DeclContext::getSemanticDepth() const {
660
// For extensions, count the depth of the nominal type being extended.
661
- if (auto ext = dyn_cast<ExtensionDecl>(this)) {
+ if (isa<ExtensionDecl>(this)) {
662
if (auto nominal = getAsNominalTypeOrNominalTypeExtensionContext())
663
return nominal->getSemanticDepth();
664
0 commit comments