Skip to content

Commit d8b96e5

Browse files
authored
Merge pull request #74585 from swiftlang/elsh/pcmo-missing-change-rel
[6.0][PackageCMO] Add back missing change for package scope in table entry visibility check
2 parents a823cad + 00bed22 commit d8b96e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/AST/Decl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4589,6 +4589,8 @@ bool ValueDecl::isMoreVisibleThan(ValueDecl *other) const {
45894589

45904590
if (scope.isPublic())
45914591
return !otherScope.isPublic();
4592+
else if (scope.isPackage())
4593+
return !otherScope.isPublicOrPackage();
45924594
else if (scope.isInternal())
45934595
return !otherScope.isPublic() && !otherScope.isInternal();
45944596
else

0 commit comments

Comments
 (0)