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 shows incorrectly when using type matching #2598

Closed
jimmymain opened this issue Jan 18, 2018 · 1 comment
Closed

SA1119 shows incorrectly when using type matching #2598

jimmymain opened this issue Jan 18, 2018 · 1 comment

Comments

@jimmymain
Copy link

SA1119 indicates extra parenthesis below, but the parenthesis are not redundant in this case.

if (!(tag is ITagWireResponseMessage rsp))
    throw SomeException();

rsp.DoStuff();
rsp.DoMoreStuff();
@vweijsters
Copy link
Contributor

Duplicate of #2372

@vweijsters vweijsters marked this as a duplicate of #2372 Jan 18, 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