Skip to content

[CSClosure] Add support for projected/wrapper values #60384

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 2 commits into from
Aug 5, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 3, 2022

To support referencing projected and/or wrapped var
in a closure solver needs to lookup a type of their
originator and based on the wrapper type compute and
assign types to projection and/or wrapper.

Resolves: #59295
Resolves: rdar://94506352

@xedin xedin requested a review from hborla August 3, 2022 22:13
@xedin
Copy link
Contributor Author

xedin commented Aug 3, 2022

@swift-ci please test

@xedin xedin force-pushed the rdar-94506352-aux-vars branch from 717059d to 5bd2cf6 Compare August 3, 2022 22:18
@xedin
Copy link
Contributor Author

xedin commented Aug 4, 2022

@swift-ci please test

xedin added 2 commits August 4, 2022 16:55
To support referencing projected and/or wrapped var
in a closure solver needs to lookup a type of their
originator and based on the wrapper type compute and
assign types to projection and/or wrapper.

Resolves: swiftlang#59295
Resolves: rdar://94506352
…rapper

The outermost wrapper is the one at index `0` in the wrapper list
but it's easy for humans to make a reverse assumption since outermost
is the back of the list. Let's add a dedicated method to reduce error
probability of the property wrapper APIs.
@xedin xedin force-pushed the rdar-94506352-aux-vars branch from 5bd2cf6 to 5ee5a22 Compare August 5, 2022 00:34
@xedin xedin requested a review from hborla August 5, 2022 00:35
@xedin
Copy link
Contributor Author

xedin commented Aug 5, 2022

@swift-ci please test

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.

Property Wrapper cannot be compiled correctly with $ in function body (Xcode 14 and main?)
2 participants