Skip to content

[6.0][CSBindings] Delay inference through OptionalObject if "object" is l-value capable #73105

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

xedin
Copy link
Contributor

@xedin xedin commented Apr 18, 2024

Cherry-pick of #73083


  • Explanation:

Inference cannot be allowed in cases where both sides are type
variables and optional type is l-value capable because it results
in binding "optional" to an optional type and later discovering
a contextual type that is l-value optional i.e. if "optional type"
is resolved by selecting subscript overload.

xedin added 2 commits April 18, 2024 09:17
…value capable

Inference cannot be allowed in cases where both sides are type
variables and optional type is l-value capable because it results
in binding "optional" to an optional type and later discovering
a contextual type that is l-value optional i.e. if "optional type"
is resolved by selecting subscript overload.

(cherry picked from commit 7654afd)
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels Apr 18, 2024
@xedin xedin requested a review from hborla April 18, 2024 16:21
@xedin xedin requested a review from a team as a code owner April 18, 2024 16:21
@xedin xedin changed the title [6.0][Sema/ClangImporter] Improvements to witness matching [6.0][CSBindings] Delay inference through OptionalObject if "object" is l-value capable Apr 18, 2024
@xedin
Copy link
Contributor Author

xedin commented Apr 18, 2024

@swift-ci please test

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.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants