{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/try/issues/101","repository_url":"https://api.github.com/repos/dotnet/try","labels_url":"https://api.github.com/repos/dotnet/try/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/try/issues/101/comments","events_url":"https://api.github.com/repos/dotnet/try/issues/101/events","html_url":"https://github.com/dotnet/try/issues/101","id":340460552,"node_id":"MDU6SXNzdWUzNDA0NjA1NTI=","number":101,"title":"Extension methods are not supported","user":{"login":"loic-sharma","id":737941,"node_id":"MDQ6VXNlcjczNzk0MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/737941?v=4","gravatar_id":"","url":"https://api.github.com/users/loic-sharma","html_url":"https://github.com/loic-sharma","followers_url":"https://api.github.com/users/loic-sharma/followers","following_url":"https://api.github.com/users/loic-sharma/following{/other_user}","gists_url":"https://api.github.com/users/loic-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/loic-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loic-sharma/subscriptions","organizations_url":"https://api.github.com/users/loic-sharma/orgs","repos_url":"https://api.github.com/users/loic-sharma/repos","events_url":"https://api.github.com/users/loic-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/loic-sharma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-12T01:42:28Z","updated_at":"2018-07-12T01:42:28Z","closed_at":null,"author_association":"NONE","body":"The following snippet:\r\n\r\n```csharp\r\npublic static class X {\r\n  public static void Test(this string bob)\r\n  {\r\n    Console.WriteLine($\"Value {bob}\");\r\n  }\r\n}\r\n\r\npublic class Program\r\n{\r\n  public static void Main()\r\n  {\r\n    string bob = null;\r\n\r\n    bob.Test();\r\n  }\r\n}\r\n```\r\n\r\nGives the following build errors:\r\n\r\n> (2,22): error CS1109: Extension methods must be defined in a top level static class; X is a nested class\r\n> (14,9): error CS1061: 'string' does not contain a definition for 'Test' and no extension method 'Test' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)"}}
{"actor":{"display_login":"loic-sharma"}}