We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version Used:
Visual Studio Community 2022 version 17.11.4
Steps to Reproduce:
var x = ((byte)3).GetType();
In the above snippet x represents typeof(byte) with the cast and would represent typeof(int) without it
x
typeof(byte)
typeof(int)
Diagnostic Id:
"IDE0004: Cast is redundant"
Expected Behavior:
No IDE0004 on the above snippet
Actual Behavior:
IDE0004 happens on the above snippet
The text was updated successfully, but these errors were encountered:
CyrusNajmabadi
Successfully merging a pull request may close this issue.
Version Used:
Visual Studio Community 2022 version 17.11.4
Steps to Reproduce:
In the above snippet
x
representstypeof(byte)
with the cast and would representtypeof(int)
without itDiagnostic Id:
"IDE0004: Cast is redundant"
Expected Behavior:
No IDE0004 on the above snippet
Actual Behavior:
IDE0004 happens on the above snippet
The text was updated successfully, but these errors were encountered: