Skip to content

[SR-13785] @_implementationOnly should consider visible symbol sources #56182

Closed
@swift-ci

Description

@swift-ci
Previous ID SR-13785
Radar None
Original Reporter scentini (JIRA User)
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CxxInterop
Assignee scentini (JIRA)
Priority Medium

md5: f1f629ba1efe63d6a40133b2bb50e49f

Issue Description:

Currently, when Swift tries to validate that only visible declarations are used in the module's public interface, it sometimes rejects decls that come from `@_implementationOnly` modules, even in the case where there is a second, non `@_implementationOnly` module that exports the decl (see #34462 for a demonstration of the failure).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.c++ interopFeature: Interoperability with C++compilerThe Swift compiler itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions