{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/csharplang/issues/1839","repository_url":"https://api.github.com/repos/dotnet/csharplang","labels_url":"https://api.github.com/repos/dotnet/csharplang/issues/1839/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/csharplang/issues/1839/comments","events_url":"https://api.github.com/repos/dotnet/csharplang/issues/1839/events","html_url":"https://github.com/dotnet/csharplang/issues/1839","id":357952977,"node_id":"MDU6SXNzdWUzNTc5NTI5Nzc=","number":1839,"title":"Proposal: extend pattern matching for types","user":{"login":"AlexRadch","id":6407980,"node_id":"MDQ6VXNlcjY0MDc5ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/6407980?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexRadch","html_url":"https://github.com/AlexRadch","followers_url":"https://api.github.com/users/AlexRadch/followers","following_url":"https://api.github.com/users/AlexRadch/following{/other_user}","gists_url":"https://api.github.com/users/AlexRadch/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexRadch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexRadch/subscriptions","organizations_url":"https://api.github.com/users/AlexRadch/orgs","repos_url":"https://api.github.com/users/AlexRadch/repos","events_url":"https://api.github.com/users/AlexRadch/events{/privacy}","received_events_url":"https://api.github.com/users/AlexRadch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-09-07T07:34:13Z","updated_at":"2018-09-07T09:41:43Z","closed_at":null,"author_association":"NONE","body":"Proposal: extend pattern matching for types.\r\n\r\nEnable something like next:\r\n```cs\r\n        public static int IndexOfEquals<T>(this Span<T> span, T value)\r\n        {\r\n            if (T is IEquatable<T> Equatable)\r\n                return System.MemoryExtensions.IndexOf(span, (Equatable)value);\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/csharplang/issues/comments/419384448","html_url":"https://github.com/dotnet/csharplang/issues/1839#issuecomment-419384448","issue_url":"https://api.github.com/repos/dotnet/csharplang/issues/1839","id":419384448,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTM4NDQ0OA==","user":{"login":"DavidArno","id":196899,"node_id":"MDQ6VXNlcjE5Njg5OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/196899?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidArno","html_url":"https://github.com/DavidArno","followers_url":"https://api.github.com/users/DavidArno/followers","following_url":"https://api.github.com/users/DavidArno/following{/other_user}","gists_url":"https://api.github.com/users/DavidArno/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidArno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidArno/subscriptions","organizations_url":"https://api.github.com/users/DavidArno/orgs","repos_url":"https://api.github.com/users/DavidArno/repos","events_url":"https://api.github.com/users/DavidArno/events{/privacy}","received_events_url":"https://api.github.com/users/DavidArno/received_events","type":"User","site_admin":false},"created_at":"2018-09-07T09:41:43Z","updated_at":"2018-09-07T09:41:43Z","author_association":"NONE","body":"@AlexRadch,\r\n\r\nYou have posted the same code example here and in #1840 and have received the same code advice three times. This suggests that you need to improve what you are asking for as it's clearly causing confusion. Could you expand your OP please to better explain things? Also, your request for pattern matching of types makes sense but gets lost due to this confusion."}}
{"actor":{"display_login":"DavidArno"}}