Skip to content

Commit

Permalink
Merge pull request swiftlang#74584 from apple/elsh/pcmo-missing-change
Browse files Browse the repository at this point in the history
[PackageCMO] Add back missing change for package scope in table entry…
  • Loading branch information
elsh committed Jun 20, 2024
2 parents 470a04c + 45cf9ac commit 4207dce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/AST/Decl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4682,6 +4682,8 @@ bool ValueDecl::isMoreVisibleThan(ValueDecl *other) const {

if (scope.isPublic())
return !otherScope.isPublic();
else if (scope.isPackage())
return !otherScope.isPublicOrPackage();
else if (scope.isInternal())
return !otherScope.isPublic() && !otherScope.isInternal();
else
Expand Down

0 comments on commit 4207dce

Please sign in to comment.