{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8423","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8423/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8423/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8423/events","html_url":"https://github.com/Microsoft/TypeScript/issues/8423","id":152613213,"number":8423,"title":"Regression: TypeScript no longer awaits custom Promises","user":{"login":"RReverser","id":557590,"avatar_url":"https://avatars.githubusercontent.com/u/557590?v=3","gravatar_id":"","url":"https://api.github.com/users/RReverser","html_url":"https://github.com/RReverser","followers_url":"https://api.github.com/users/RReverser/followers","following_url":"https://api.github.com/users/RReverser/following{/other_user}","gists_url":"https://api.github.com/users/RReverser/gists{/gist_id}","starred_url":"https://api.github.com/users/RReverser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RReverser/subscriptions","organizations_url":"https://api.github.com/users/RReverser/orgs","repos_url":"https://api.github.com/users/RReverser/repos","events_url":"https://api.github.com/users/RReverser/events{/privacy}","received_events_url":"https://api.github.com/users/RReverser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-02T18:28:49Z","updated_at":"2016-05-02T18:32:59Z","closed_at":null,"body":"<!--\r\nThank you for contributing to TypeScript! Please review this checklist\r\n       before submitting your issue.\r\n[ ] Many common issues and suggestions are addressed in the FAQ\r\n     https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n[ ] Search for duplicates before logging new issues\r\n    https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue\r\n[ ] 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\n1.9.0-dev.20160502\r\n\r\n**Code**\r\n\r\n```ts\r\ndeclare namespace Windows.Foundation {\r\n    interface IPromise<TResult> {\r\n        then<U>(success?: (value: TResult) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>;\r\n        then<U>(success?: (value: TResult) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>;\r\n        then<U>(success?: (value: TResult) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>;\r\n        then<U>(success?: (value: TResult) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>;\r\n        done<U>(success?: (value: TResult) => any, error?: (error: any) => any, progress?: (progress: any) => void): void;\r\n\r\n        cancel(): void;\r\n    }\r\n}\r\n\r\nasync function sample(promise: Windows.Foundation.IPromise<number>) {\r\n    var number = await promise;\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\nNo error, as this is an await-compatible Promise definition; more concretely, those are definitions for UWP APIs and they worked well with a stable TypeScript.\r\n\r\n**Actual behavior:** \r\nCompiler emits an error `Operand for 'await' does not have a valid callable 'then' member.`."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/216321008","html_url":"https://github.com/Microsoft/TypeScript/issues/8423#issuecomment-216321008","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8423","id":216321008,"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-05-02T18:32:59Z","updated_at":"2016-05-02T18:32:59Z","body":"Please see https://github.com/Microsoft/TypeScript/issues/6068 for more details."}}