Open tayloraswift opened 4 weeks ago
on closer inspection, i believe the “inheritance” relationship is correct as the feature indeed exists internally within the module, the bug is that the child declaration is recorded as public
when in fact it should be internal
.
Description
lib/SymbolGraphGen believes S “inherits” the nominally public P.f method, even though the protocol and all its members are internal.
Reproduction
Expected behavior
lib/SymbolGraphGen should clip the ACL of child declarations to the ACL of their lexical parent.
Environment
swift --version Swift version 5.10 (swift-5.10-RELEASE) Target: x86_64-unknown-linux-gnu
Additional information
No response