{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/18784","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/18784/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/18784/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/18784/events","html_url":"https://github.com/dotnet/roslyn/pull/18784","id":222514704,"number":18784,"title":"Relax conversion requirements for pattern-matching involving type parameters.","user":{"login":"gafter","id":3804346,"avatar_url":"https://avatars0.githubusercontent.com/u/3804346?v=3","gravatar_id":"","url":"https://api.github.com/users/gafter","html_url":"https://github.com/gafter","followers_url":"https://api.github.com/users/gafter/followers","following_url":"https://api.github.com/users/gafter/following{/other_user}","gists_url":"https://api.github.com/users/gafter/gists{/gist_id}","starred_url":"https://api.github.com/users/gafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gafter/subscriptions","organizations_url":"https://api.github.com/users/gafter/orgs","repos_url":"https://api.github.com/users/gafter/repos","events_url":"https://api.github.com/users/gafter/events{/privacy}","received_events_url":"https://api.github.com/users/gafter/received_events","type":"User","site_admin":false},"labels":[{"id":167974280,"url":"https://api.github.com/repos/dotnet/roslyn/labels/4%20-%20In%20Review","name":"4 - In Review","color":"CCCCCC","default":false},{"id":166673288,"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","color":"5319e7","default":false},{"id":197452922,"url":"https://api.github.com/repos/dotnet/roslyn/labels/cla-already-signed","name":"cla-already-signed","color":"FFFFFF","default":false},{"id":166677091,"url":"https://api.github.com/repos/dotnet/roslyn/labels/Feature%20Request","name":"Feature Request","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":{"login":"gafter","id":3804346,"avatar_url":"https://avatars0.githubusercontent.com/u/3804346?v=3","gravatar_id":"","url":"https://api.github.com/users/gafter","html_url":"https://github.com/gafter","followers_url":"https://api.github.com/users/gafter/followers","following_url":"https://api.github.com/users/gafter/following{/other_user}","gists_url":"https://api.github.com/users/gafter/gists{/gist_id}","starred_url":"https://api.github.com/users/gafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gafter/subscriptions","organizations_url":"https://api.github.com/users/gafter/orgs","repos_url":"https://api.github.com/users/gafter/repos","events_url":"https://api.github.com/users/gafter/events{/privacy}","received_events_url":"https://api.github.com/users/gafter/received_events","type":"User","site_admin":false},"assignees":[{"login":"gafter","id":3804346,"avatar_url":"https://avatars0.githubusercontent.com/u/3804346?v=3","gravatar_id":"","url":"https://api.github.com/users/gafter","html_url":"https://github.com/gafter","followers_url":"https://api.github.com/users/gafter/followers","following_url":"https://api.github.com/users/gafter/following{/other_user}","gists_url":"https://api.github.com/users/gafter/gists{/gist_id}","starred_url":"https://api.github.com/users/gafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gafter/subscriptions","organizations_url":"https://api.github.com/users/gafter/orgs","repos_url":"https://api.github.com/users/gafter/repos","events_url":"https://api.github.com/users/gafter/events{/privacy}","received_events_url":"https://api.github.com/users/gafter/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/28","html_url":"https://github.com/dotnet/roslyn/milestone/28","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/28/labels","id":2372708,"number":28,"title":"15.3","description":"","creator":{"login":"jinujoseph","id":12449387,"avatar_url":"https://avatars0.githubusercontent.com/u/12449387?v=3","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":494,"closed_issues":250,"state":"open","created_at":"2017-03-08T20:32:19Z","updated_at":"2017-05-05T16:21:50Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2017-04-18T19:05:48Z","updated_at":"2017-05-05T16:47:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/18784","html_url":"https://github.com/dotnet/roslyn/pull/18784","diff_url":"https://github.com/dotnet/roslyn/pull/18784.diff","patch_url":"https://github.com/dotnet/roslyn/pull/18784.patch"},"body":"**Customer scenario**\r\n\r\nThis is a tiny language change for 7.1. See https://github.com/dotnet/csharplang/issues/154.\r\n\r\nSee #16195 for customer scenario. In short, pattern-matching can give a compile-time error unexpectedly when type parameters are involved. The compiler is correct to give these errors according to the spec, but we wish to relax the language to make it legal.\r\n\r\n**Bugs this fixes:**\r\n\r\nFixes #16195\r\n\r\n**Workarounds, if any**\r\n\r\nCast the expression being matched to `object`.\r\n\r\n**Risk**\r\n\r\nLow. This has little impact on existing code.\r\n\r\n**Performance impact**\r\n\r\nNone expected.\r\n\r\n**Is this a regression from a previous update?**\r\n\r\nNo.\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/299516272","html_url":"https://github.com/dotnet/roslyn/pull/18784#issuecomment-299516272","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/18784","id":299516272,"user":{"login":"MeiChin-Tsai","id":14808746,"avatar_url":"https://avatars3.githubusercontent.com/u/14808746?v=3","gravatar_id":"","url":"https://api.github.com/users/MeiChin-Tsai","html_url":"https://github.com/MeiChin-Tsai","followers_url":"https://api.github.com/users/MeiChin-Tsai/followers","following_url":"https://api.github.com/users/MeiChin-Tsai/following{/other_user}","gists_url":"https://api.github.com/users/MeiChin-Tsai/gists{/gist_id}","starred_url":"https://api.github.com/users/MeiChin-Tsai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeiChin-Tsai/subscriptions","organizations_url":"https://api.github.com/users/MeiChin-Tsai/orgs","repos_url":"https://api.github.com/users/MeiChin-Tsai/repos","events_url":"https://api.github.com/users/MeiChin-Tsai/events{/privacy}","received_events_url":"https://api.github.com/users/MeiChin-Tsai/received_events","type":"User","site_admin":false},"created_at":"2017-05-05T16:47:22Z","updated_at":"2017-05-05T16:47:22Z","body":"Approved once you get code review and tests done. Thanks. "}}
{"actor":{"display_login":"MeiChin-Tsai"}}