- Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.triage neededThis issue needs more specific labelsThis issue needs more specific labels
Description
Description
lib/SymbolGraphGen believes S “inherits” the nominally public P.f method, even though the protocol and all its members are internal.
Reproduction
protocol P { func f() } extension P { public func f() { } } public struct S:P { }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
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.triage neededThis issue needs more specific labelsThis issue needs more specific labels