Skip to content

Remove warnings from TestJSONEncoder compilation. #27044

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

Conversation

drodriguez
Copy link
Contributor

Since the introduction of #26357/SR-11160 the TestJSONEncoder seems to
have been emitting the new warnings related to tuples being incorrectly
pattern matched.

The changes remove the incorrect code (removing the parenthesis around
the pattern).

Should not have any other effect (and the effect was not normally
visible if the test was successful, anyway).

/cc @varungandhi-apple

Since the introduction of swiftlang#26357/SR-11160 the TestJSONEncoder seems to
have been emitting the new warnings related to tuples being incorrectly
pattern matched.

The changes remove the incorrect code (removing the parenthesis around
the pattern).

Should not have any other effect (and the effect was not normally
visible if the test was successful, anyway).
@varungandhi-apple varungandhi-apple self-requested a review September 5, 2019 21:32
Copy link
Contributor

@varungandhi-apple varungandhi-apple left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@drodriguez
Copy link
Contributor Author

@swift-ci please smoke test

@drodriguez drodriguez merged commit cd84bc1 into swiftlang:master Sep 5, 2019
@drodriguez drodriguez deleted the remove-warning-TestJSONEncoder branch September 5, 2019 23:00
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