Skip to content

Diagnose conformances on @objcImpl extensions #66609

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 1 commit into from
Jun 14, 2023

Conversation

beccadax
Copy link
Contributor

@objcImpl extensions aren’t allowed to declare new conformances; instead, they should either be declared in the header or in an ordinary extensions. (If they were permitted, they’d be ignored.)

Fixes rdar://110669366.

@beccadax
Copy link
Contributor Author

@swift-ci please smoke test

@beccadax beccadax requested a review from DougGregor June 13, 2023 22:25
@beccadax
Copy link
Contributor Author

Note that the new errors in this PR will become warnings when cherry-picked to the release/5.9 branch.

@objcImpl extensions aren’t allowed to declare new conformances; instead, they should either be declared in the header or in an ordinary extensions. (If they were permitted, they’d be ignored.)

Fixes rdar://110669366.
@beccadax beccadax force-pushed the just-empty-protocol branch from 46fc7b7 to 6758fdb Compare June 14, 2023 00:22
@beccadax
Copy link
Contributor Author

@swift-ci please smoke test macOS platform

@beccadax
Copy link
Contributor Author

@swift-ci please test

1 similar comment
@beccadax
Copy link
Contributor Author

@swift-ci please test

@beccadax beccadax requested review from tshortli and nkcsgexi June 14, 2023 19:53
Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Becca!

@beccadax beccadax merged commit 1532fb1 into swiftlang:main Jun 14, 2023
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.

3 participants