-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[SR-11295] There should be a warning for unnecessary casts #53696
Comments
This sounds like a good starter bug! |
I can give it a try @harlanhaskins |
@harlanhaskins Here's the PR #26710 🙂 |
Comment by Sidramappa Halake (JIRA) Unnecessary casting, there should be warning |
Hi everyone. This Issues's status is still `open` although the PR has been merged over a year ago. Can we close it? Sorry if I'm missing the point or anything, but navigating things here is still very confusing. I'm searching through the Starterbugs in order to find something easy to start contributing on. If someone has a suggestion for a beginner, I'd really appreciate it! |
The merge was reverted because of a case we have not handled and we hit a behavior that needs to get right on the compiler in order for us to be able to correctly implement this. Long history short we need a way to track down from where(the source) of an inferred type is coming from. You can see more details on the re-apply PR #27895 As far as stater bug you can checkout this link and check for any unassigned 🙂 |
Thank you! � |
Additional Detail from JIRA
md5: 134fdcf76ae60512bbc5e443ad8390d7
Issue Description:
Swift should warn you if you're performing a cast to a type that the thing is already
I would expect something like "casting expression to `String` doesn't change the type" with a fixit of removing "as String"
The text was updated successfully, but these errors were encountered: