You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interfaceBarextendsPromise<void>{foo(): this;// also repros with `foo(): Bar;`}constbuggy=async(param: Bar)=>{awaitparam.foo();};
Expected behavior:
In TypeScript 2.0.3 this code will compile successfully.
Actual behavior:
In TypeScript 2.1.4 this code will not compile successfully and gives the error error TS1058: Operand for 'await' does not have a valid callable 'then' member.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.1.4
Code
Expected behavior:
In TypeScript 2.0.3 this code will compile successfully.
Actual behavior:
In TypeScript 2.1.4 this code will not compile successfully and gives the error
error TS1058: Operand for 'await' does not have a valid callable 'then' member.
The text was updated successfully, but these errors were encountered: