{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/28632","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/28632/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/28632/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/28632/events","html_url":"https://github.com/dotnet/roslyn/issues/28632","id":342395420,"node_id":"MDU6SXNzdWUzNDIzOTU0MjA=","number":28632,"title":"Missing invocation of Nullable<T>.GetValueOrDefault when property pattern is used","user":{"login":"gafter","id":3804346,"node_id":"MDQ6VXNlcjM4MDQzNDY=","avatar_url":"https://avatars3.githubusercontent.com/u/3804346?v=4","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":166673288,"node_id":"MDU6TGFiZWwxNjY2NzMyODg=","url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","color":"5319e7","default":false},{"id":165001069,"node_id":"MDU6TGFiZWwxNjUwMDEwNjk=","url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"e52727","default":false},{"id":326633537,"node_id":"MDU6TGFiZWwzMjY2MzM1Mzc=","url":"https://api.github.com/repos/dotnet/roslyn/labels/New%20Language%20Feature%20-%20Pattern%20Matching","name":"New Language Feature - Pattern Matching","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":{"login":"gafter","id":3804346,"node_id":"MDQ6VXNlcjM4MDQzNDY=","avatar_url":"https://avatars3.githubusercontent.com/u/3804346?v=4","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,"node_id":"MDQ6VXNlcjM4MDQzNDY=","avatar_url":"https://avatars3.githubusercontent.com/u/3804346?v=4","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/18","html_url":"https://github.com/dotnet/roslyn/milestone/18","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/18/labels","id":1675130,"node_id":"MDk6TWlsZXN0b25lMTY3NTEzMA==","number":18,"title":"16.0","description":"The version *after* the next major version.","creator":{"login":"gafter","id":3804346,"node_id":"MDQ6VXNlcjM4MDQzNDY=","avatar_url":"https://avatars3.githubusercontent.com/u/3804346?v=4","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},"open_issues":1081,"closed_issues":380,"state":"open","created_at":"2016-03-31T00:06:25Z","updated_at":"2018-07-23T17:14:49Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-07-18T16:07:22Z","updated_at":"2018-07-23T17:51:03Z","closed_at":null,"author_association":"MEMBER","body":"This generated code for the following correctly uses `System.Nullable<int>.GetValueOrDefault()` to get the `int` value out of an `int?` value that is known not to be `null`\r\n\r\n``` c#\r\n    public int M(int? x)\r\n    {\r\n        return x is int y ? y : 0;\r\n    }\r\n```\r\n\r\nHowever, the code generated for the following is missing that invocation\r\n\r\n``` c#\r\n    public int M(int? x)\r\n    {\r\n        return x is {} y ? y : 0;\r\n    }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/407144297","html_url":"https://github.com/dotnet/roslyn/issues/28632#issuecomment-407144297","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/28632","id":407144297,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzE0NDI5Nw==","user":{"login":"gafter","id":3804346,"node_id":"MDQ6VXNlcjM4MDQzNDY=","avatar_url":"https://avatars3.githubusercontent.com/u/3804346?v=4","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},"created_at":"2018-07-23T17:51:03Z","updated_at":"2018-07-23T17:51:03Z","author_association":"MEMBER","body":"[Sharplab](https://sharplab.io/#v2:EYLgZgpghgLgrgJwgZwLRIMaOQSwG4SoAOsMECAdsgDQwg4A2APgAICMAbAAQsBMPbAOwBYAFABvMV2k8AzAO44KMLgFk2ACiUwA/FwAeASikzJomRZ6CDXHMlvKuATy56XILmwDcJ6QF9fOQUHFVVeLWU9I0CzSxkWa31be3EuP2dXDI9eH3MZALzpFnl2bhYAFgEADg1jQq5YuIEAOnYATg11DQo4BgZDQ1ymlvbO8J6+gaGm9la2Dq7ZKcCLWdGwjXLl+oKCoA===) still shows this bug, but it is not reproducible in `features/recursive-patterns`. I'll add a test to ensure we don't regress here."}}
{"actor":{"display_login":"gafter"}}