{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3978","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3978/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3978/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3978/events","html_url":"https://github.com/Microsoft/TypeScript/issues/3978","id":96563865,"number":3978,"title":"[async] Cannot read property 'members' of undefined","user":{"login":"nippur72","id":2598443,"avatar_url":"https://avatars.githubusercontent.com/u/2598443?v=3","gravatar_id":"","url":"https://api.github.com/users/nippur72","html_url":"https://github.com/nippur72","followers_url":"https://api.github.com/users/nippur72/followers","following_url":"https://api.github.com/users/nippur72/following{/other_user}","gists_url":"https://api.github.com/users/nippur72/gists{/gist_id}","starred_url":"https://api.github.com/users/nippur72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nippur72/subscriptions","organizations_url":"https://api.github.com/users/nippur72/orgs","repos_url":"https://api.github.com/users/nippur72/repos","events_url":"https://api.github.com/users/nippur72/events{/privacy}","received_events_url":"https://api.github.com/users/nippur72/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"rbuckton","id":3902892,"avatar_url":"https://avatars.githubusercontent.com/u/3902892?v=3","gravatar_id":"","url":"https://api.github.com/users/rbuckton","html_url":"https://github.com/rbuckton","followers_url":"https://api.github.com/users/rbuckton/followers","following_url":"https://api.github.com/users/rbuckton/following{/other_user}","gists_url":"https://api.github.com/users/rbuckton/gists{/gist_id}","starred_url":"https://api.github.com/users/rbuckton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbuckton/subscriptions","organizations_url":"https://api.github.com/users/rbuckton/orgs","repos_url":"https://api.github.com/users/rbuckton/repos","events_url":"https://api.github.com/users/rbuckton/events{/privacy}","received_events_url":"https://api.github.com/users/rbuckton/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/8","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%201.6","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/8/labels","id":900034,"number":8,"title":"TypeScript 1.6","description":"","creator":{"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},"open_issues":85,"closed_issues":167,"state":"open","created_at":"2014-12-11T05:46:12Z","updated_at":"2015-08-05T07:15:47Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-07-22T13:07:50Z","updated_at":"2015-08-05T07:15:47Z","closed_at":"2015-08-05T07:15:47Z","body":"when compiling this code for ES5 (not ES6) \r\n```TypeScript\r\nasync function f() {\r\n   return { };\t\r\n}\r\n```\r\ninstead of giving the \"only available in ES6\" warning, it throws this exception:\r\n```\r\n               throw e;\r\n                     ^\r\nTypeError: Cannot read property 'members' of undefined\r\n   at resolveDeclaredMembers (C:\\Users\\Nino\\AppData\\Roaming\\npm\\node_modules\\typescript\\bin\\tsc.js:15429:65)\r\n   at resolveTypeReferenceMembers (C:\\Users\\Nino\\AppData\\Roaming\\npm\\node_modules\\typescript\\bin\\tsc.js:15459:26)\r\n   at resolveStructuredTypeMembers (C:\\Users\\Nino\\AppData\\Roaming\\npm\\node_modules\\typescript\\bin\\tsc.js:15665:21)\r\n   at getPropertiesOfObjectType (C:\\Users\\Nino\\AppData\\Roaming\\npm\\node_modules\\typescript\\bin\\tsc.js:15673:24)\r\n   at propertiesRelatedTo (C:\\Users\\Nino\\AppData\\Roaming\\npm\\node_modules\\typescript\\bin\\tsc.js:17141:34)\r\n   at objectTypeRelatedTo (C:\\Users\\Nino\\AppData\\Roaming\\npm\\node_modules\\typescript\\bin\\tsc.js:17107:30)\r\n   at isRelatedTo (C:\\Users\\Nino\\AppData\\Roaming\\npm\\node_modules\\typescript\\bin\\tsc.js:16935:34)\r\n   at checkTypeRelatedTo (C:\\Users\\Nino\\AppData\\Roaming\\npm\\node_modules\\typescript\\bin\\tsc.js:16824:26)\r\n   at checkTypeAssignableTo (C:\\Users\\Nino\\AppData\\Roaming\\npm\\node_modules\\typescript\\bin\\tsc.js:16797:20)\r\n   at isTypeAssignableTo (C:\\Users\\Nino\\AppData\\Roaming\\npm\\node_modules\\typescript\\bin\\tsc.js:16791:20)\r\n```\r\n\r\nusing tsc `1.5.3`"}}