Skip to content

Relax @retroactive check to allow same-package declarations #73512

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

Merged
merged 4 commits into from
Jul 3, 2024

Conversation

harlanhaskins
Copy link
Contributor

@harlanhaskins harlanhaskins commented May 8, 2024

This relaxes the @retroactive check to allow conformances as long as either the type or the protocol is declared in the same package as the extension.

Resolves rdar://127738893

@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@harlanhaskins harlanhaskins added the swift evolution pending discussion Flag → feature: A feature that has a Swift evolution proposal currently in review label May 8, 2024
@harlanhaskins harlanhaskins requested a review from tshortli May 8, 2024 18:06
@harlanhaskins harlanhaskins force-pushed the hhaskins/retro-activity branch from da96eed to 9d3c63a Compare May 8, 2024 18:33
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@harlanhaskins harlanhaskins marked this pull request as ready for review May 9, 2024 03:56
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@nkcsgexi nkcsgexi requested a review from elsh May 9, 2024 16:33
@nkcsgexi
Copy link
Contributor

nkcsgexi commented May 9, 2024

cc: @elsh for taking a look.

@harlanhaskins harlanhaskins force-pushed the hhaskins/retro-activity branch from d7c76f4 to b206819 Compare July 2, 2024 17:37
@harlanhaskins
Copy link
Contributor Author

Ha -- the test needs updating for access control on imports

@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test and merge

@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@harlanhaskins harlanhaskins merged commit c2a87aa into swiftlang:main Jul 3, 2024
3 checks passed
@harlanhaskins harlanhaskins deleted the hhaskins/retro-activity branch July 3, 2024 03:09
harlanhaskins pushed a commit that referenced this pull request Jul 9, 2024
…75079)

* Relax @retroactive check to allow same-package declarations

* Add package decls to the test too

* Fix tests

* Import test libraries publicly so I can use their conformances in public retroactive extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swift evolution pending discussion Flag → feature: A feature that has a Swift evolution proposal currently in review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants