Skip to content

[ResultBuilders] Diagnose pre-check errors inline #37342

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
merged 1 commit into from
May 10, 2021

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 10, 2021

Not all of the pre-check errors could be diagnosed by re-running
PreCheckExpression e.g. key path expressions are mutated to
a particular form after an error has been produced.

To make the behavior consistent, let's allow pre-check to emit
diagnostics and unify pre-check and constraint generation fixes.

Resolves: rdar://77466241

Not all of the pre-check errors could be diagnosed by re-running
`PreCheckExpression` e.g. key path expressions are mutated to
a particular form after an error has been produced.

To make the behavior consistent, let's allow pre-check to emit
diagnostics and unify pre-check and constraint generation fixes.

Resolves: rdar://77466241
@xedin xedin requested a review from hborla May 10, 2021 18:08
@xedin
Copy link
Contributor Author

xedin commented May 10, 2021

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented May 10, 2021

@swift-ci please smoke test Windows platform

Copy link
Member

@hborla hborla left a comment

Choose a reason for hiding this comment

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

@xedin and I discussed this offline and we agreed that it's acceptable for pre-check to emit errors during solving here because running pre-check on the closure body would emit the same errors across overloads anyway.

@xedin
Copy link
Contributor Author

xedin commented May 10, 2021

I should have mentioned that in the description :/

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