-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-IDEuntriagedIssues and PRs which have not yet been triaged by a leadIssues and PRs which have not yet been triaged by a lead
Description
Version Used:
VS 17.6.2
Steps to Reproduce:
- Create a new .NET 7 app.
- Add a
.editorconfigfile and setcsharp_style_prefer_local_over_anonymous_function = true:warning. - Add the code
Func<int, int> test = (int n) => n * 2;. - See that IDE0039 is reported.
- Change the code to
var test = (int n) => n * 2;
Diagnostic Id:
IDE0039
Expected Behavior:
IDE0039 should be reported for implicitly typed lambdas (or implicitly typed anonymous functions with a block body).
Actual Behavior:
IDE0039 is not reported for implicitly typed lambdas (or implicitly typed anonymous functions with a block body).
Metadata
Metadata
Assignees
Labels
Area-IDEuntriagedIssues and PRs which have not yet been triaged by a leadIssues and PRs which have not yet been triaged by a lead