Skip to content

Commit 4207dce

Browse files
authored
Merge pull request #74584 from apple/elsh/pcmo-missing-change
[PackageCMO] Add back missing change for package scope in table entry…
2 parents 470a04c + 45cf9ac commit 4207dce

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
@@ -4682,6 +4682,8 @@ bool ValueDecl::isMoreVisibleThan(ValueDecl *other) const {
46824682

46834683
if (scope.isPublic())
46844684
return !otherScope.isPublic();
4685+
else if (scope.isPackage())
4686+
return !otherScope.isPublicOrPackage();
46854687
else if (scope.isInternal())
46864688
return !otherScope.isPublic() && !otherScope.isInternal();
46874689
else

0 commit comments

Comments
 (0)