Skip to content

[Sema] Mark variables as hole while diagnosing a optional payload #60126

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

Closed

Conversation

LucianoPAlmeida
Copy link
Contributor

In this case compiler was not being able to produce a diagnostic when attempting overloads for enumerated with a hole variable values coming from an invalid decl ref as base.
So to fix this, let's mark type variables as potential hole when failing on optional payload to handle such cases.

Resolves #60029.

@LucianoPAlmeida LucianoPAlmeida requested a review from xedin July 19, 2022 13:46
@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please test

@LucianoPAlmeida LucianoPAlmeida force-pushed the hole-invalid-ref branch 2 times, most recently from 0de4877 to 6d0c718 Compare July 19, 2022 21:59
@LucianoPAlmeida LucianoPAlmeida deleted the hole-invalid-ref branch July 20, 2022 01:52
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.

Unresolved name causes "Failed to produce diagnostic for expression..." error
3 participants