-
Notifications
You must be signed in to change notification settings - Fork 509
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 incorrectly reporting on pattern matching (is expression) #2372
Comments
This should be part of #2268 since it's caused by a new C# 7 feature (is-expression pattern matching). |
This particular pattern should already be covered by the light-up functionality in #2370, allowing someone to branch off that work and correct this issue. |
sharwell
added a commit
to sharwell/StyleCopAnalyzers
that referenced
this issue
Jun 16, 2017
sharwell
added a commit
to sharwell/StyleCopAnalyzers
that referenced
this issue
Jun 17, 2017
Closed
Thank you for fixing this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given this code:
SA1119 reports the parenthesis as unnecessary (they are necessary). The code fix removes the parenthesis, resulting in syntax that won't compile:
It would appear SA1119 is reaching for the proposed is not or aint operator. 😉
The text was updated successfully, but these errors were encountered: