Skip to content

[TypeChecker] Treat tuples specially while validating checked casts #28910

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 2 commits into from
Jan 6, 2020

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Dec 20, 2019

Based on the checked cast behavior don't warn about unrelated
casts between tuples unless their sizes or labels differ.

Resolves: rdar://problem/56436235

Based on the checked cast behavior don't warn about unrelated
casts between tuples unless their sizes or labels differ.

Resolves: rdar://problem/56436235
@xedin xedin requested a review from slavapestov December 20, 2019 22:08
@xedin
Copy link
Contributor Author

xedin commented Dec 20, 2019

@slavapestov Does this make sense? @weissi told me that "always fails" warning is affecting SwiftNIO.

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.

Never mind my comments, I can't read today.

Typing rule LGTM.

@xedin
Copy link
Contributor Author

xedin commented Jan 6, 2020

@swift-ci please smoke test

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