{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9050","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9050/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9050/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9050/events","html_url":"https://github.com/Microsoft/TypeScript/issues/9050","id":159390133,"number":9050,"title":"ES6 getter property does not exist when using union types","user":{"login":"bradleyayers","id":105820,"avatar_url":"https://avatars.githubusercontent.com/u/105820?v=3","gravatar_id":"","url":"https://api.github.com/users/bradleyayers","html_url":"https://github.com/bradleyayers","followers_url":"https://api.github.com/users/bradleyayers/followers","following_url":"https://api.github.com/users/bradleyayers/following{/other_user}","gists_url":"https://api.github.com/users/bradleyayers/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleyayers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleyayers/subscriptions","organizations_url":"https://api.github.com/users/bradleyayers/orgs","repos_url":"https://api.github.com/users/bradleyayers/repos","events_url":"https://api.github.com/users/bradleyayers/events{/privacy}","received_events_url":"https://api.github.com/users/bradleyayers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-09T11:55:09Z","updated_at":"2016-06-09T12:07:53Z","closed_at":"2016-06-09T12:07:53Z","body":"<!--\r\nThank you for contributing to TypeScript! Please review this checklist\r\n       before submitting your issue.\r\n[x] Many common issues and suggestions are addressed in the FAQ\r\n     https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n[x] Search for duplicates before logging new issues\r\n    https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue\r\n[x] Questions are best asked and answered at Stack Overflow\r\n    http://stackoverflow.com/questions/tagged/typescript\r\n\r\nFor bug reports, please include the information below.\r\n__________________________________________________________ -->\r\n\r\n**TypeScript Version:** \r\n\r\nnightly (1.9.0-dev.20160217)\r\n\r\n**Code**\r\n\r\n```ts\r\nclass Example {\r\n  get foo() {\r\n    return true;\r\n  }\r\n\r\n  baz(example: Example) {\r\n    example.foo;\r\n  }\r\n\r\n  bar(example: Example | Object) {\r\n    example.foo; // error TS2339: Property 'foo' does not exist on type 'Example | Object'.\r\n  }\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\n`example.foo` would not throw an error in either method.\r\n\r\n**Actual behavior:** \r\n\r\n`example.foo` when `example` is `Example | Object` throws:\r\n\r\n    error TS2339: Property 'foo' does not exist on type 'Example | Object'.\r\n"}}
{"actor":{"display_login":"bradleyayers"}}