Skip to content

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

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

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Apr 17, 2024

Re-landing #69292 temporarily reverted by #70209


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 17, 2024 10:31
…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.
@xedin xedin requested a review from hborla as a code owner April 17, 2024 17:33
@xedin
Copy link
Contributor Author

xedin commented Apr 17, 2024

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Apr 17, 2024

@swift-ci please test source compatibility

1 similar comment
@xedin
Copy link
Contributor Author

xedin commented Apr 17, 2024

@swift-ci please test source compatibility

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