Skip to content

Conversation

@xymus
Copy link
Contributor

@xymus xymus commented Nov 6, 2025

Ensure that classes and enums don't reference an implementation-only imported dependency unless they are themselves marked as @_implementationOnly. This is similar to the logic applied to structs in #85179, ensuring their memory layout visible to clients doesn't depend on the hidden dependency. Also extend checking for super types to structs.

This remains gated behind the experimental feature flag CheckImplementationOnly.

@xymus xymus force-pushed the exportability-nle-classes-and-structs branch from 5edddb2 to b107169 Compare November 6, 2025 19:34
@xymus
Copy link
Contributor Author

xymus commented Nov 6, 2025

@swift-ci Please smoke test

@xymus
Copy link
Contributor Author

xymus commented Nov 6, 2025

@swift-ci Please smoke test macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant