{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/35142","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/35142/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/35142/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/35142/events","html_url":"https://github.com/dotnet/roslyn/issues/35142","id":435252472,"node_id":"MDU6SXNzdWU0MzUyNTI0NzI=","number":35142,"title":"Using range operator causes InvalidProgramException","user":{"login":"vinaychandra","id":5670927,"node_id":"MDQ6VXNlcjU2NzA5Mjc=","avatar_url":"https://avatars3.githubusercontent.com/u/5670927?v=4","gravatar_id":"","url":"https://api.github.com/users/vinaychandra","html_url":"https://github.com/vinaychandra","followers_url":"https://api.github.com/users/vinaychandra/followers","following_url":"https://api.github.com/users/vinaychandra/following{/other_user}","gists_url":"https://api.github.com/users/vinaychandra/gists{/gist_id}","starred_url":"https://api.github.com/users/vinaychandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinaychandra/subscriptions","organizations_url":"https://api.github.com/users/vinaychandra/orgs","repos_url":"https://api.github.com/users/vinaychandra/repos","events_url":"https://api.github.com/users/vinaychandra/events{/privacy}","received_events_url":"https://api.github.com/users/vinaychandra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-04-19T05:48:12Z","updated_at":"2019-04-19T17:57:41Z","closed_at":null,"author_association":"NONE","body":"# Issue Title\r\n\r\nUsing range operator causes InvalidProgramException in the latest dotnet core preview\r\n\r\n# General\r\n\r\nDonet Core Version: 3 Preview 4\r\nVisual Studio: 16.0.2\r\n\r\nRunning an MsTest v2 that targets netcore3.0 which tests another netcore3.0 library that uses the new range operator causes an `InvalidProgramException`\r\n\r\nExample code used in the library:\r\n`var index = query[0..^1] + (char)(query[^1] + 1);`\r\n\r\nExample that worked\r\n`var index = query.Substring(0, query.Length - 1) + query[query.Length - 1];`\r\n\r\nException:\r\n```\r\nException Message: Common Language Runtime detected an invalid program.\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/484971584","html_url":"https://github.com/dotnet/roslyn/issues/35142#issuecomment-484971584","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/35142","id":484971584,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NDk3MTU4NA==","user":{"login":"agocke","id":515774,"node_id":"MDQ6VXNlcjUxNTc3NA==","avatar_url":"https://avatars2.githubusercontent.com/u/515774?v=4","gravatar_id":"","url":"https://api.github.com/users/agocke","html_url":"https://github.com/agocke","followers_url":"https://api.github.com/users/agocke/followers","following_url":"https://api.github.com/users/agocke/following{/other_user}","gists_url":"https://api.github.com/users/agocke/gists{/gist_id}","starred_url":"https://api.github.com/users/agocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agocke/subscriptions","organizations_url":"https://api.github.com/users/agocke/orgs","repos_url":"https://api.github.com/users/agocke/repos","events_url":"https://api.github.com/users/agocke/events{/privacy}","received_events_url":"https://api.github.com/users/agocke/received_events","type":"User","site_admin":false},"created_at":"2019-04-19T17:57:41Z","updated_at":"2019-04-19T17:57:41Z","author_association":"CONTRIBUTOR","body":"@terrajobst Did the compiler I inserted into `buildtools` and `arcade` flow into .net core yet?"}}
{"actor":{"display_login":"agocke"}}