Skip to content

[Diagnostics] Resolve SR-11677: Offer a better diagnostic when && is … #28033

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
Nov 4, 2019

Conversation

RayZhao1998
Copy link
Contributor

@RayZhao1998 RayZhao1998 commented Nov 2, 2019

Add a && checker and improve the diagnostic to remind developer replacing && with comma instead of garbage diagnostics.

Resolves SR-11677

@RayZhao1998
Copy link
Contributor Author

@swift-ci Please smoke test

Copy link
Contributor

@LucianoPAlmeida LucianoPAlmeida left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@CodaFi CodaFi left a comment

Choose a reason for hiding this comment

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

The approach is solid. Just a few nits.

@harlanhaskins
Copy link
Contributor

I still get tripped up on this bit of syntax, so thank you @RayZhao1998!

Copy link
Contributor

@CodaFi CodaFi left a comment

Choose a reason for hiding this comment

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

LGTM. I'll move the test myself.

@CodaFi
Copy link
Contributor

CodaFi commented Nov 4, 2019

@swift-ci please smoke test

@CodaFi
Copy link
Contributor

CodaFi commented Nov 4, 2019

Thanks!

⛵️

@CodaFi CodaFi merged commit 5076d71 into swiftlang:master Nov 4, 2019
@CodaFi
Copy link
Contributor

CodaFi commented Nov 4, 2019

Thanks for your contribution! Please make sure to resolve the SR.

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.

5 participants