{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/18844","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/18844/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/18844/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/18844/events","html_url":"https://github.com/dotnet/roslyn/issues/18844","id":222925167,"number":18844,"title":"Missing hidden sequence point emitted an embedded statement of using statement","user":{"login":"tmat","id":41759,"avatar_url":"https://avatars3.githubusercontent.com/u/41759?v=3","gravatar_id":"","url":"https://api.github.com/users/tmat","html_url":"https://github.com/tmat","followers_url":"https://api.github.com/users/tmat/followers","following_url":"https://api.github.com/users/tmat/following{/other_user}","gists_url":"https://api.github.com/users/tmat/gists{/gist_id}","starred_url":"https://api.github.com/users/tmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmat/subscriptions","organizations_url":"https://api.github.com/users/tmat/orgs","repos_url":"https://api.github.com/users/tmat/repos","events_url":"https://api.github.com/users/tmat/events{/privacy}","received_events_url":"https://api.github.com/users/tmat/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":166377946,"url":"https://api.github.com/repos/dotnet/roslyn/labels/Language-C%23","name":"Language-C#","color":"207de5","default":false}],"state":"open","locked":false,"assignee":{"login":"jcouv","id":12466233,"avatar_url":"https://avatars1.githubusercontent.com/u/12466233?v=3","gravatar_id":"","url":"https://api.github.com/users/jcouv","html_url":"https://github.com/jcouv","followers_url":"https://api.github.com/users/jcouv/followers","following_url":"https://api.github.com/users/jcouv/following{/other_user}","gists_url":"https://api.github.com/users/jcouv/gists{/gist_id}","starred_url":"https://api.github.com/users/jcouv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcouv/subscriptions","organizations_url":"https://api.github.com/users/jcouv/orgs","repos_url":"https://api.github.com/users/jcouv/repos","events_url":"https://api.github.com/users/jcouv/events{/privacy}","received_events_url":"https://api.github.com/users/jcouv/received_events","type":"User","site_admin":false},"assignees":[{"login":"jcouv","id":12466233,"avatar_url":"https://avatars1.githubusercontent.com/u/12466233?v=3","gravatar_id":"","url":"https://api.github.com/users/jcouv","html_url":"https://github.com/jcouv","followers_url":"https://api.github.com/users/jcouv/followers","following_url":"https://api.github.com/users/jcouv/following{/other_user}","gists_url":"https://api.github.com/users/jcouv/gists{/gist_id}","starred_url":"https://api.github.com/users/jcouv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcouv/subscriptions","organizations_url":"https://api.github.com/users/jcouv/orgs","repos_url":"https://api.github.com/users/jcouv/repos","events_url":"https://api.github.com/users/jcouv/events{/privacy}","received_events_url":"https://api.github.com/users/jcouv/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":484,"closed_issues":260,"state":"open","created_at":"2017-03-08T20:32:19Z","updated_at":"2017-05-08T07:41:31Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2017-04-20T01:57:23Z","updated_at":"2017-05-08T13:48:21Z","closed_at":null,"body":"VSO bug [390881](https://devdiv.visualstudio.com/defaultcollection/DevDiv/_workitems?_a=edit&id=390881)\r\n\r\n```C#\r\nclass C\r\n{\r\n    bool F()\r\n    {\r\n        bool x = true;\r\n        bool value = false;\r\n        using (var stream = new System.IO.MemoryStream())\r\n            if (x)\r\n            {\r\n                value = true;\r\n            }\r\n            else\r\n                value = false;\r\n\r\n        return value;\r\n    }\r\n}\r\n```\r\n\r\n```IL\r\n.try\r\n  {\r\n    // sequence point: if (x)\r\n    IL_000b:  ldloc.0\r\n    IL_000c:  stloc.3\r\n    // sequence point: <hidden>\r\n    IL_000d:  ldloc.3\r\n    IL_000e:  brfalse.s  IL_0016\r\n    // sequence point: {\r\n    IL_0010:  nop\r\n    // sequence point: value = true;\r\n    IL_0011:  ldc.i4.1\r\n    IL_0012:  stloc.1\r\n    // sequence point: }\r\n    IL_0013:  nop\r\n    IL_0014:  br.s       IL_0018\r\n    // sequence point: value = false;\r\n    IL_0016:  ldc.i4.0\r\n    IL_0017:  stloc.1\r\n    // sequence point: <hidden>                         // not emitted\r\n    IL_0018:  leave.s    IL_0025\r\n  }\r\n  finally\r\n  {\r\n   ...\r\n  }\r\n```\r\n\r\nDebugger steps onto the else branch even though it's not executed:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/41759/25209772/f6d34588-2531-11e7-8e65-e35e542236ec.png)\r\n\r\nSee skipped test ```PDBTests.UsingStatement_Embedded```"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/299871669","html_url":"https://github.com/dotnet/roslyn/issues/18844#issuecomment-299871669","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/18844","id":299871669,"user":{"login":"sharwell","id":1408396,"avatar_url":"https://avatars2.githubusercontent.com/u/1408396?v=3","gravatar_id":"","url":"https://api.github.com/users/sharwell","html_url":"https://github.com/sharwell","followers_url":"https://api.github.com/users/sharwell/followers","following_url":"https://api.github.com/users/sharwell/following{/other_user}","gists_url":"https://api.github.com/users/sharwell/gists{/gist_id}","starred_url":"https://api.github.com/users/sharwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharwell/subscriptions","organizations_url":"https://api.github.com/users/sharwell/orgs","repos_url":"https://api.github.com/users/sharwell/repos","events_url":"https://api.github.com/users/sharwell/events{/privacy}","received_events_url":"https://api.github.com/users/sharwell/received_events","type":"User","site_admin":false},"created_at":"2017-05-08T13:48:21Z","updated_at":"2017-05-08T13:48:21Z","body":"Sometimes I don't know what's worse, the bug, or the fact that someone wrote code that exhibited the bug. 😆 "}}
{"actor":{"display_login":"sharwell"}}