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

[Sema] Fix issue 65330 Unhelpful error when missing contextually requ… #65610

Merged
merged 1 commit into from
May 6, 2023
Merged

[Sema] Fix issue 65330 Unhelpful error when missing contextually requ… #65610

merged 1 commit into from
May 6, 2023

Conversation

jreference
Copy link

@jreference jreference commented May 3, 2023

…ired as bridging conversion to AnyObject in structural position.

Minor formatting change in previous test case generic-subscript.swift

I'm not sure if these expressions should be considered to be contextual failures as well but it seemed reasonable. So this code change adds some custom logic in the contextual failure diagnosis for TupleElement locators when trying to diagnose AnyObject conversion failures.

Resolves #65330

Copy link
Contributor

@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 for the contribution!

Copy link
Contributor

@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.

Looks much better now! I think after my inline comments are addressed it would be ready to go.

@jreference
Copy link
Author

jreference commented May 5, 2023

Thank you very much for the feedback and also for getting back on #57540 . I have made changes accordingly for this PR.

P.S. Do you happen to know of any other good starter bugs in swift-frontend?

@xedin xedin self-requested a review May 5, 2023 14:43
@xedin
Copy link
Contributor

xedin commented May 5, 2023

Regarding starter bugs I can definitely find you a few, are you interesting in the same general area?

@jreference
Copy link
Author

Regarding starter bugs I can definitely find you a few, are you interesting in the same general area?

Yes please, I'm interested in starter bugs within the compiler front-end (Lexing/parsing/semantic analysis etc)

…ired as bridging conversion to AnyObject in structural position. Minor formatting change in previous test case
@xedin
Copy link
Contributor

xedin commented May 6, 2023

@swift-ci please test

@jreference
Copy link
Author

@xedin Can you please merge the PR?

I think I can merge it now that you have approved but https://github.com/apple/swift/blob/main/docs/HowToGuides/FirstPullRequest.md indicates contributors should ask reviewers to merge the PR. Not exactly sure what is the standard practice.

Thanks for all the help!

@xedin xedin merged commit ff52726 into swiftlang:main May 6, 2023
@xedin
Copy link
Contributor

xedin commented May 6, 2023

Feel free to merge yourself next time if the PR is approved and tests are green! I will leave some more starter bug issues in here on Monday.

@jreference
Copy link
Author

Got it, thank you!

@jreference
Copy link
Author

@xedin

Thanks for the pointers! I'll probably have a look at #57437 first

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.

Unhelpful error when missing contextually required as bridging conversion to AnyObject in structural position
2 participants