Skip to content

(lib/SymbolGraphGen) clip the ACL of nested declarations to the ACL of their lexical parents #75917

@tayloraswift

Description

@tayloraswift

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

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.triage neededThis issue needs more specific labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions