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

False positive for unnecessary parentheses #2466

Closed
ghost opened this issue Jun 25, 2017 · 1 comment
Closed

False positive for unnecessary parentheses #2466

ghost opened this issue Jun 25, 2017 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented Jun 25, 2017

Code:

static bool isString(object o) {
	if (!(o is string s)) return false;
	return true;
}

Expected: No error.
Actual: Program.cs(5,8): warning SA1119: Statement must not use unnecessary parenthesis

@sharwell
Copy link
Member

This appears to be a duplicate of #2372, which was fixed for the 1.1.0-beta004 release. If you are using this release (or newer) and still encounter the behavior, please reopen this issue.

@sharwell sharwell self-assigned this Jun 25, 2017
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

1 participant