Skip to content

Sema: Fix local property wrappers on constructor [6.1] #78528

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 3 commits into from
Jan 11, 2025

Conversation

slavapestov
Copy link
Contributor

6.1 cherry-pick of #78470

  • Description: Some new assertions were added to ensure that property wrappers are recorded in the right places, which introduced a crash in a case that was not previously covered by the test suite.

  • Origination: Regression was caused by the SolverTrail refactoring which is new in 6.1.

  • Risk: Low.

  • Reviewed by: @xedin

  • Radar: rdar://141961300

@slavapestov slavapestov requested a review from a team as a code owner January 9, 2025 19:47
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov slavapestov enabled auto-merge January 9, 2025 19:54
…n external property wrapper

The check to see whether argument matches the parameter exactly
causes two problems: prevents projected value initialized injection;
and, if there are multiple parameters with property wrappers,
would apply incorrect wrapper to other locations because the wrapper
application index wasn't incremented.

Resolves: rdar://140282980
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov slavapestov merged commit f2da113 into swiftlang:release/6.1 Jan 11, 2025
5 checks passed
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