{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/38181","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/38181/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/38181/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/38181/events","html_url":"https://github.com/dotnet/roslyn/issues/38181","id":483611822,"node_id":"MDU6SXNzdWU0ODM2MTE4MjI=","number":38181,"title":"provide signature help for local functions inside static method","user":{"login":"ivanbasov","id":5455484,"node_id":"MDQ6VXNlcjU0NTU0ODQ=","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,"node_id":"MDU6TGFiZWwxNjY2NzMyODg=","url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","color":"5319e7","default":false},{"id":166677091,"node_id":"MDU6TGFiZWwxNjY2NzcwOTE=","url":"https://api.github.com/repos/dotnet/roslyn/labels/Feature%20Request","name":"Feature Request","color":"e52727","default":false},{"id":1207033640,"node_id":"MDU6TGFiZWwxMjA3MDMzNjQw","url":"https://api.github.com/repos/dotnet/roslyn/labels/IDE-IntelliSense","name":"IDE-IntelliSense","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/55","html_url":"https://github.com/dotnet/roslyn/milestone/55","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/55/labels","id":4664983,"node_id":"MDk6TWlsZXN0b25lNDY2NDk4Mw==","number":55,"title":"16.4.P2","description":"","creator":{"login":"jinujoseph","id":12449387,"node_id":"MDQ6VXNlcjEyNDQ5Mzg3","avatar_url":"https://avatars3.githubusercontent.com/u/12449387?v=4","gravatar_id":"","url":"https://api.github.com/users/jinujoseph","html_url":"https://github.com/jinujoseph","followers_url":"https://api.github.com/users/jinujoseph/followers","following_url":"https://api.github.com/users/jinujoseph/following{/other_user}","gists_url":"https://api.github.com/users/jinujoseph/gists{/gist_id}","starred_url":"https://api.github.com/users/jinujoseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinujoseph/subscriptions","organizations_url":"https://api.github.com/users/jinujoseph/orgs","repos_url":"https://api.github.com/users/jinujoseph/repos","events_url":"https://api.github.com/users/jinujoseph/events{/privacy}","received_events_url":"https://api.github.com/users/jinujoseph/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":11,"state":"open","created_at":"2019-09-17T00:26:56Z","updated_at":"2019-09-25T18:19:21Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2019-08-21T19:33:21Z","updated_at":"2019-09-25T18:19:21Z","closed_at":"2019-09-25T18:19:21Z","author_association":"CONTRIBUTOR","body":"The following scenario is not working:\r\n\r\n```\r\n   public async Task TestLocalFunctionInStaticMethod() \r\n         { \r\n             var markup = @\" \r\n class C \r\n { \r\n     static void M() \r\n     { \r\n         void Local() { } \r\n  \r\n         Local($$); \r\n     } \r\n }\"; \r\n  \r\n             var expectedOrderedItems = new List<SignatureHelpTestItem> { new SignatureHelpTestItem(\"void Local()\") }; \r\n  \r\n             await TestAsync(markup, expectedOrderedItems); \r\n         } \r\n```\r\n\r\nHere is the discussion: https://github.com/dotnet/roslyn/issues/38074#issuecomment-522800766\r\n\r\nIt seems that the issue is in the semantic model. We need to use \r\nhttps://github.com/dotnet/roslyn/blob/5551fad9651b91dcc64a965cfd93e1da4f386273/src/Features/CSharp/Portable/SignatureHelp/InvocationExpressionSignatureHelpProvider_MethodGroup.cs#L56-L60\r\n\r\n`RequiresInstanceReceiver` instead of `!IsStatic` but it is unavailable. See https://github.com/dotnet/roslyn/pull/38117#issuecomment-523613605\r\n\r\n"}}
{"actor":{"display_login":"ivanbasov"}}