{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5439","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5439/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5439/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5439/events","html_url":"https://github.com/Microsoft/TypeScript/issues/5439","id":113942439,"number":5439,"title":"Enums erroneously removed from unions by type guards","user":{"login":"weswigham","id":2932786,"avatar_url":"https://avatars.githubusercontent.com/u/2932786?v=3","gravatar_id":"","url":"https://api.github.com/users/weswigham","html_url":"https://github.com/weswigham","followers_url":"https://api.github.com/users/weswigham/followers","following_url":"https://api.github.com/users/weswigham/following{/other_user}","gists_url":"https://api.github.com/users/weswigham/gists{/gist_id}","starred_url":"https://api.github.com/users/weswigham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weswigham/subscriptions","organizations_url":"https://api.github.com/users/weswigham/orgs","repos_url":"https://api.github.com/users/weswigham/repos","events_url":"https://api.github.com/users/weswigham/events{/privacy}","received_events_url":"https://api.github.com/users/weswigham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-28T22:48:49Z","updated_at":"2015-10-28T22:48:49Z","closed_at":null,"body":"```ts\r\nenum E {}\r\nenum V {}\r\n\r\nvar x: number|E|V;\r\n\r\nif (typeof x === \"number\") {\r\n\tx; // Should be number|E|V, but is just number\r\n}\r\n```"}}