{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/22921","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/22921/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/22921/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/22921/events","html_url":"https://github.com/dotnet/roslyn/issues/22921","id":269805174,"number":22921,"title":"C# compiler does not provide a warning about unused lambda variables","user":{"login":"ivanbasov","id":5455484,"avatar_url":"https://avatars2.githubusercontent.com/u/5455484?v=4","gravatar_id":"","url":"https://api.github.com/users/ivanbasov","html_url":"https://github.com/ivanbasov","followers_url":"https://api.github.com/users/ivanbasov/followers","following_url":"https://api.github.com/users/ivanbasov/following{/other_user}","gists_url":"https://api.github.com/users/ivanbasov/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanbasov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanbasov/subscriptions","organizations_url":"https://api.github.com/users/ivanbasov/orgs","repos_url":"https://api.github.com/users/ivanbasov/repos","events_url":"https://api.github.com/users/ivanbasov/events{/privacy}","received_events_url":"https://api.github.com/users/ivanbasov/received_events","type":"User","site_admin":false},"labels":[{"id":166673288,"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","color":"5319e7","default":false},{"id":166675914,"url":"https://api.github.com/repos/dotnet/roslyn/labels/Resolution-By%20Design","name":"Resolution-By Design","color":"cccccc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/29","html_url":"https://github.com/dotnet/roslyn/milestone/29","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/29/labels","id":2377970,"number":29,"title":"15.6","description":"","creator":{"login":"jaredpar","id":146967,"avatar_url":"https://avatars0.githubusercontent.com/u/146967?v=4","gravatar_id":"","url":"https://api.github.com/users/jaredpar","html_url":"https://github.com/jaredpar","followers_url":"https://api.github.com/users/jaredpar/followers","following_url":"https://api.github.com/users/jaredpar/following{/other_user}","gists_url":"https://api.github.com/users/jaredpar/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredpar/subscriptions","organizations_url":"https://api.github.com/users/jaredpar/orgs","repos_url":"https://api.github.com/users/jaredpar/repos","events_url":"https://api.github.com/users/jaredpar/events{/privacy}","received_events_url":"https://api.github.com/users/jaredpar/received_events","type":"User","site_admin":false},"open_issues":281,"closed_issues":284,"state":"open","created_at":"2017-03-10T17:35:36Z","updated_at":"2017-11-27T22:42:13Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2017-10-31T01:28:32Z","updated_at":"2017-11-28T00:05:59Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"For the code:\r\n\r\n```\r\n    void SomeMethod()\r\n    {\r\n        void localFunction()\r\n        {\r\n        }\r\n\r\n        Func<int> lambda = () =>\r\n        {\r\n            return 1;\r\n        };\r\n    }\r\n```\r\n\r\ncompiler provides a warning for the unused local function but does not for the unused lambda. I expect they should be consistent.\r\nThose compiler diagnostics is used in roslyn-analyzers."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/347370126","html_url":"https://github.com/dotnet/roslyn/issues/22921#issuecomment-347370126","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/22921","id":347370126,"user":{"login":"jcouv","id":12466233,"avatar_url":"https://avatars2.githubusercontent.com/u/12466233?v=4","gravatar_id":"","url":"https://api.github.com/users/jcouv","html_url":"https://github.com/jcouv","followers_url":"https://api.github.com/users/jcouv/followers","following_url":"https://api.github.com/users/jcouv/following{/other_user}","gists_url":"https://api.github.com/users/jcouv/gists{/gist_id}","starred_url":"https://api.github.com/users/jcouv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcouv/subscriptions","organizations_url":"https://api.github.com/users/jcouv/orgs","repos_url":"https://api.github.com/users/jcouv/repos","events_url":"https://api.github.com/users/jcouv/events{/privacy}","received_events_url":"https://api.github.com/users/jcouv/received_events","type":"User","site_admin":false},"created_at":"2017-11-28T00:05:59Z","updated_at":"2017-11-28T00:05:59Z","author_association":"MEMBER","body":"@agocke We're targeting warning waves to release along with C# 8.0."}}
{"actor":{"display_login":"jcouv"}}