Skip to content

[5.7] Sema: Diagnose @_backDeploy attributes on initializers and deinitializers #59284

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 Jun 6, 2022

Cherry-pick of #59283

Applying the @_backDeploy attribute to an initializer currently causes a duplicate symbol error at link time so for now reject it on those declarations for clarity. Also, reject it on deinitializers as well since the attribute cannot have the desired effect on deinit.

Resolves rdar://94450734

…lizers.

Applying the `@_backDeploy` attribute to an initializer currently causes a duplicate symbol error at link time so for now reject it on those declarations for clarity. Also, reject it on deinitializers as well since the attribute cannot have the desired effect on `deinit`.

Resolves rdar://94450734
@tshortli tshortli requested a review from nkcsgexi June 6, 2022 20:07
@tshortli tshortli requested a review from a team as a code owner June 6, 2022 20:07
@tshortli
Copy link
Contributor Author

tshortli commented Jun 6, 2022

@swift-ci please test

@tshortli tshortli merged commit f1f3884 into swiftlang:release/5.7 Jun 7, 2022
@tshortli tshortli deleted the diagnose-back-deploy-on-init-deinit-5.7 branch June 7, 2022 00:12
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.

2 participants