Skip to content

Commit 696544a

Browse files
committed
Merge pull request #667 from davezarzycki/simple_fixes
Fix typo in ClassDecl::setForeign()
2 parents fa35b99 + 6bb0fde commit 696544a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/Decl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3261,7 +3261,7 @@ class ClassDecl : public NominalTypeDecl {
32613261
return ClassDeclBits.Foreign;
32623262
}
32633263
void setForeign(bool isForeign = true) {
3264-
ClassDeclBits.Foreign = true;
3264+
ClassDeclBits.Foreign = isForeign;
32653265
}
32663266

32673267
/// Find a method of a class that overrides a given method.

0 commit comments

Comments
 (0)