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
This code will trigger SA1119 (Statement must not use unnecessary parenthesis) while those parenthesis are necessary to make the expression negative.
if (!(someVariable is TypeA typeAVariable))
On the other hand, if we use only type check without pattern matching, the error will not pop up:
if (!(someVariable is TypeA))
The text was updated successfully, but these errors were encountered:
Duplicate of #2372
Sorry, something went wrong.
No branches or pull requests
This code will trigger SA1119 (Statement must not use unnecessary parenthesis) while those parenthesis are necessary to make the expression negative.
On the other hand, if we use only type check without pattern matching, the error will not pop up:
The text was updated successfully, but these errors were encountered: