We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
var f = (Func<int>)delegate() { return 1; };
is fixed to
var f = (Func<int>)() => { return 1; };
which does not build (missing parenthesis).
It needs to be fixed to
var f = (Func<int>)(() => { return 1; });
The text was updated successfully, but these errors were encountered:
Correct code fix for SA1130 to add parenthesis around lambda when the…
ad8c0b0
… original delegate expression is part of a cast expression DotNetAnalyzers#3510
12eb29b
6a1c3ef
Successfully merging a pull request may close this issue.
is fixed to
which does not build (missing parenthesis).
It needs to be fixed to
The text was updated successfully, but these errors were encountered: