-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Improved Cast Diagnostics when Literals are involved #64846
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
Conversation
@AnthonyLatsis Request your review. |
2bd2566
to
7d69a5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good so far!
@swift-ci please smoke test macOS |
Please let me know more issues to solve! While I keep surfing and searching, often there are issues which are not marked as 'good-first-issues' but I assume I can at least try some viable ones! |
We have to update the test cases for this new message as well =] |
Whoops! My bad! |
7d69a5c
to
f745115
Compare
@swift-ci please smoke test macOS |
@swift-ci Please smoke test macOS platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the bot won’t trigger without write access.
f745115
to
c87f451
Compare
Any other additions/changes that's required? |
c87f451
to
60a9f47
Compare
@AnthonyLatsis I have made the changes... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, thank you! The final word belongs to the code owners.
One last nit from me: please add a "Sema" tag to the commit message.
60a9f47
to
2c96e90
Compare
Thanks! I have done that too! |
@swift-ci please smoke test macOS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@swift-ci please test Linux platform |
@swift-ci please test Windows platform |
Fixes #53822
Emphasised the diagnostic involving conditional downcast to coercion making it more specific adding some contrast between casting (
as?
) and coercing (as
).