-
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 claims mandatory parentheses are unnecessary #2058
Comments
This appears to be a duplicate of #1284. I'll try to reproduce it tomorrow to make sure. 😄 |
It sure looks like a dupe. But it still repros with 1.0.0-rc3 |
I tried your example and it does not repro for me. |
I'm seeing a lot of inconsistently reported issues (e.g. #2055) where VS and the command line produce different outputs, different machines produce different build logs, etc. So I can't say I'm too surprised that you're not seeing it, @pdelvo. |
This is a bug in Roslyn 1.1 (dotnet/roslyn#7446). A workaround is available (enable SA0000 - #1979), but is disabled by default in the 1.0 release due to its performance overhead. We implemented a better balance of performance/behavior for our upcoming 1.1 beta 1 release (#2033).
This changed many releases ago. Each release has a new strong name now. |
Oh, good to know on both. Thanks. I guess I don't know why it doesn't repro for @pdelvo then. |
I'm not seeing this reported in the IDE or at compile time with Roslyn 1.1. Considering that there are also 3 tests for #1284 in If you find a more specific example which reproduces this issue, please reopen it. 😄 |
In the following statement, SA1119 claims the parentheses are unnecessary:
Yet after removing them, C# produces a compiler error. So evidently they are indeed necessary.
The text was updated successfully, but these errors were encountered: