Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Dec 16, 2025

…property wrapped variables

  • Explanation:

    Fixes a double-contextualization that results in an assert because properties with property wrappers have the same initializer in two places - original property (which becomes computed) and backing storage property - that's where the initializer is copied.

    Contextualization of the fully type-checked initializer should happen as part of backing storage property processing by the declaration checker.

  • Resolves: rdar://163562182

  • Main branch PR: [DeclChecker] Skip contextualization of initializers associated with … #86024

  • Risk: Low. Affects only specific situations with property wrappers with extra arguments that require non-exhaustive rethrows checking.

  • Reviewed By: @hborla

  • Testing: Added new test-cases to the suite.

(cherry picked from commit 5e815b9)

…property wrapped variables

Fixes a double-contextualization that results in an assert because
properties with property wrappers have the same initializer in two
places - original property (which becomes computed) and backing
storage property - that's where the initializer is copied.

Contextualization of the fully type-checked initializer should happen
as part of backing storage property processing by the declaration
checker.

Resolves: rdar://163562182
(cherry picked from commit 5e815b9)
@xedin xedin requested a review from hborla December 16, 2025 22:50
@xedin xedin requested a review from a team as a code owner December 16, 2025 22:50
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.3 labels Dec 16, 2025
@xedin
Copy link
Contributor Author

xedin commented Dec 16, 2025

@swift-ci please test

@xedin xedin enabled auto-merge December 16, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks swift 6.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant