Skip to content

Commit 3e98dd4

Browse files
authored
Merge pull request swiftlang#40619 from DougGregor/swiftfoundation-nsobject
2 parents 5443baa + fd41366 commit 3e98dd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/AST/Decl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8609,7 +8609,8 @@ bool ClassDecl::isNSObject() const {
86098609
if (!getName().is("NSObject")) return false;
86108610
ASTContext &ctx = getASTContext();
86118611
return (getModuleContext()->getName() == ctx.Id_Foundation ||
8612-
getModuleContext()->getName() == ctx.Id_ObjectiveC);
8612+
getModuleContext()->getName() == ctx.Id_ObjectiveC ||
8613+
getModuleContext()->getName().is("SwiftFoundation"));
86138614
}
86148615

86158616
Type ClassDecl::getSuperclass() const {

0 commit comments

Comments
 (0)