Skip to content
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

SA1119 is incorrect when negating the result of the 'is' operator #2767

Closed
KevinZinn opened this issue Aug 28, 2018 · 1 comment
Closed

SA1119 is incorrect when negating the result of the 'is' operator #2767

KevinZinn opened this issue Aug 28, 2018 · 1 comment

Comments

@KevinZinn
Copy link

I've run into this issue several times, where i use the following statement:
if (!(x is SomeType y))

SA1119 recommends if (!x is SomeType y), which is not valid C# code

@sharwell
Copy link
Member

Duplicate of #2372

@sharwell sharwell marked this as a duplicate of #2372 Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants