Skip to content

Sema: Diagnose @dynamicMemberLookup subscripts that are not accessible enough #83362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Jul 28, 2025

Since this is a source breaking change, downgrade the diagnostic to a warning until the next language version unless library evolution is enabled, in which case this would have resulted in a broken .swiftinterface and it therefore makes sense to diagnose eagerly.

Resolves rdar://156919010.

@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli
Copy link
Contributor Author

@swift-ci please test source compatibility

@tshortli tshortli force-pushed the reject-inaccessible-dynamic-member-lookup-subscripts branch 2 times, most recently from f86ae43 to b4dac2b Compare July 28, 2025 16:16
@tshortli tshortli marked this pull request as ready for review July 28, 2025 16:16
@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli
Copy link
Contributor Author

@swift-ci please test macOS

@tshortli tshortli enabled auto-merge July 28, 2025 23:49
…ble enough.

Since this is a source breaking change, downgrade the diagnostic to a warning
until the next language version unless library evolution is enabled, in which
case this would have resulted in a broken `.swiftinterface` and it therefore
makes sense to diagnose eagerly.

Resolves rdar://156919010.
@tshortli tshortli force-pushed the reject-inaccessible-dynamic-member-lookup-subscripts branch from b4dac2b to 9302cbe Compare July 29, 2025 05:36
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli merged commit 35540af into swiftlang:main Jul 29, 2025
3 checks passed
@tshortli tshortli deleted the reject-inaccessible-dynamic-member-lookup-subscripts branch July 29, 2025 14:02
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