Skip to content
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

[CS] Fix locator for dynamic member key-path IUO unwrap #39541

Merged
merged 3 commits into from Oct 5, 2021

Conversation

hamishknight
Copy link
Collaborator

We need to be looking at the callee locator for the recorded IUO unwrap when rewriting in CSApply. In addition, clean up a bit of code and improve a diagnostic for dynamic member lookup.

SR-15249

We need to be looking at the callee locator here
for the recorded IUO unwrap.

SR-15249
Add `OverloadChoice::isAnyDynamicMemberLookup`,
and use it to clean up a couple of places.
Look at the callee locator to add some additional
info to the diagnostic.
@hamishknight
Copy link
Collaborator Author

@swift-ci please test source compatibility

@hamishknight
Copy link
Collaborator Author

@swift-ci please test

Copy link
Member

@xedin xedin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@hamishknight hamishknight merged commit cf4fc9f into apple:main Oct 5, 2021
@hamishknight hamishknight deleted the dynamic-programming branch October 5, 2021 20:11
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.

None yet

2 participants