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.
2 parents 5443baa + fd41366 commit 3e98dd4Copy full SHA for 3e98dd4
lib/AST/Decl.cpp
@@ -8609,7 +8609,8 @@ bool ClassDecl::isNSObject() const {
8609
if (!getName().is("NSObject")) return false;
8610
ASTContext &ctx = getASTContext();
8611
return (getModuleContext()->getName() == ctx.Id_Foundation ||
8612
- getModuleContext()->getName() == ctx.Id_ObjectiveC);
+ getModuleContext()->getName() == ctx.Id_ObjectiveC ||
8613
+ getModuleContext()->getName().is("SwiftFoundation"));
8614
}
8615
8616
Type ClassDecl::getSuperclass() const {
0 commit comments