Skip to content

[NFC] Update for diagnostic changes #221

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
wants to merge 2 commits into from
Closed

[NFC] Update for diagnostic changes #221

wants to merge 2 commits into from

Conversation

theblixguy
Copy link

A warning diagnostic will be emitted (by swiftlang/swift#29576) when discarding a function's result and the result type is Void, since that is redundant. This patch updates a test where we expect no diagnostics to be triggered.

A warning diagnostic will be emitted when discarding a function's result and the result type is Void, since that is redundant. This patch updates a test where we expect no diagnostics to be triggered.
@benlangmuir
Copy link
Contributor

This change would make us pass the test only on master swift but fail on older compilers. While we could do that if it's absolutely necessary, I prefer to maintain a larger window of compatibility. Please take a look at #222 where I've tried to avoid this issue.

@theblixguy
Copy link
Author

Oh, I originally thought about changing the test code, then I thought maybe I can just change the assertion instead. I didn’t know about the compatibility problem. Thank you for fixing it!

@benlangmuir
Copy link
Contributor

Merged #222, which passes before and after the diagnostic change. Closing this one.

@benlangmuir benlangmuir closed this Feb 3, 2020
@theblixguy theblixguy deleted the patch-1 branch February 3, 2020 21:13
@theblixguy
Copy link
Author

Thanks!

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