{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7239","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7239/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7239/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7239/events","html_url":"https://github.com/Microsoft/TypeScript/issues/7239","id":136384814,"number":7239,"title":"finally clause with noImplicitReturns yields \"Not all code paths return a value.\"","user":{"login":"Deathspike","id":198601,"avatar_url":"https://avatars.githubusercontent.com/u/198601?v=3","gravatar_id":"","url":"https://api.github.com/users/Deathspike","html_url":"https://github.com/Deathspike","followers_url":"https://api.github.com/users/Deathspike/followers","following_url":"https://api.github.com/users/Deathspike/following{/other_user}","gists_url":"https://api.github.com/users/Deathspike/gists{/gist_id}","starred_url":"https://api.github.com/users/Deathspike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deathspike/subscriptions","organizations_url":"https://api.github.com/users/Deathspike/orgs","repos_url":"https://api.github.com/users/Deathspike/repos","events_url":"https://api.github.com/users/Deathspike/events{/privacy}","received_events_url":"https://api.github.com/users/Deathspike/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Fixed","name":"Fixed","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"vladima","id":8052307,"avatar_url":"https://avatars.githubusercontent.com/u/8052307?v=3","gravatar_id":"","url":"https://api.github.com/users/vladima","html_url":"https://github.com/vladima","followers_url":"https://api.github.com/users/vladima/followers","following_url":"https://api.github.com/users/vladima/following{/other_user}","gists_url":"https://api.github.com/users/vladima/gists{/gist_id}","starred_url":"https://api.github.com/users/vladima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladima/subscriptions","organizations_url":"https://api.github.com/users/vladima/orgs","repos_url":"https://api.github.com/users/vladima/repos","events_url":"https://api.github.com/users/vladima/events{/privacy}","received_events_url":"https://api.github.com/users/vladima/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/1","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%202.0","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/1/labels","id":721040,"number":1,"title":"TypeScript 2.0","description":"The next major release of TypeScript","creator":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"open_issues":124,"closed_issues":72,"state":"open","created_at":"2014-07-14T23:24:03Z","updated_at":"2016-02-25T23:03:44Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-02-25T13:14:59Z","updated_at":"2016-02-25T23:04:52Z","closed_at":"2016-02-25T23:03:44Z","body":"In Visual Studio Tools 2015 1.8.4, an error occurs on:\r\n\r\n```ts\r\nfunction theAnswerToLifeTheUniverseAndEverything(): number {\r\n  try {\r\n    return 42;\r\n  } finally {\r\n    console.log('Returned the answer to life the universe and everything.');\r\n  }\r\n}\r\n```\r\n\r\nWhen `noImplicitReturns: true` is set. Error is `Not all code paths return a value.`. \r\n\r\nA `finally` clause is not capable of returning anything anyway, this code should be correct."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/189023661","html_url":"https://github.com/Microsoft/TypeScript/issues/7239#issuecomment-189023661","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7239","id":189023661,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T23:04:52Z","updated_at":"2016-02-25T23:04:52Z","body":"Fix should be in tonight `typescript@next`"}}