Skip to content

[5.9] Ban the use of accessor macros on bindings with multiple variables in a single binding #68088

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

DougGregor
Copy link
Member

@DougGregor DougGregor commented Aug 23, 2023

As with property wrappers, we can't properly desugar the application of accessor macros to bindings with multiple variables. Prohibit them up front.

Fixes rdar://112783811, cherry-picked from #68087

As with property wrappers, we can't properly desugar the application of
accessor macros to bindings with multiple variables. Prohibit them up
front.

Fixes rdar://112783811.
@DougGregor DougGregor requested a review from a team as a code owner August 23, 2023 13:26
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor changed the title Ban the use of accessor macros on bindings with multiple variables [5.9] Ban the use of accessor macros on bindings with multiple variables in a single binding Aug 23, 2023
@DougGregor DougGregor merged commit ddf6cf9 into swiftlang:release/5.9 Aug 23, 2023
@DougGregor DougGregor deleted the accessor-macro-single-binding-restriction-5.9 branch August 23, 2023 20:50
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