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 a901892 commit fd41366Copy full SHA for fd41366
lib/AST/Decl.cpp
@@ -8584,7 +8584,8 @@ bool ClassDecl::isNSObject() const {
8584
if (!getName().is("NSObject")) return false;
8585
ASTContext &ctx = getASTContext();
8586
return (getModuleContext()->getName() == ctx.Id_Foundation ||
8587
- getModuleContext()->getName() == ctx.Id_ObjectiveC);
+ getModuleContext()->getName() == ctx.Id_ObjectiveC ||
8588
+ getModuleContext()->getName().is("SwiftFoundation"));
8589
}
8590
8591
Type ClassDecl::getSuperclass() const {
0 commit comments