{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8453","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8453/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8453/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8453/events","html_url":"https://github.com/Microsoft/TypeScript/issues/8453","id":152919600,"number":8453,"title":"Should error when unwrapping an unwrappable variable","user":{"login":"tinganho","id":1324476,"avatar_url":"https://avatars.githubusercontent.com/u/1324476?v=3","gravatar_id":"","url":"https://api.github.com/users/tinganho","html_url":"https://github.com/tinganho","followers_url":"https://api.github.com/users/tinganho/followers","following_url":"https://api.github.com/users/tinganho/following{/other_user}","gists_url":"https://api.github.com/users/tinganho/gists{/gist_id}","starred_url":"https://api.github.com/users/tinganho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinganho/subscriptions","organizations_url":"https://api.github.com/users/tinganho/orgs","repos_url":"https://api.github.com/users/tinganho/repos","events_url":"https://api.github.com/users/tinganho/events{/privacy}","received_events_url":"https://api.github.com/users/tinganho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-04T02:53:06Z","updated_at":"2016-05-04T04:15:34Z","closed_at":null,"body":"`s` cannot be null or undefined below. So I think it is appropriate to error when trying to unwrap.\r\n```ts\r\nlet s: string;\r\nid = '';\r\nif (s!) { // should throw an error\r\n    \r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/216737314","html_url":"https://github.com/Microsoft/TypeScript/issues/8453#issuecomment-216737314","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8453","id":216737314,"user":{"login":"tinganho","id":1324476,"avatar_url":"https://avatars.githubusercontent.com/u/1324476?v=3","gravatar_id":"","url":"https://api.github.com/users/tinganho","html_url":"https://github.com/tinganho","followers_url":"https://api.github.com/users/tinganho/followers","following_url":"https://api.github.com/users/tinganho/following{/other_user}","gists_url":"https://api.github.com/users/tinganho/gists{/gist_id}","starred_url":"https://api.github.com/users/tinganho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinganho/subscriptions","organizations_url":"https://api.github.com/users/tinganho/orgs","repos_url":"https://api.github.com/users/tinganho/repos","events_url":"https://api.github.com/users/tinganho/events{/privacy}","received_events_url":"https://api.github.com/users/tinganho/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T04:15:34Z","updated_at":"2016-05-04T04:15:34Z","body":"I'm not getting any error. The unwrap operator removes 'undefined | null' from the type:\r\n\r\n<img width=\"310\" alt=\"screen shot 2016-05-04 at 12 11 11\" src=\"https://cloud.githubusercontent.com/assets/1324476/15005015/52e1121a-11f1-11e6-90ff-f3ac286ec1c7.png\">\r\n"}}