TypeScript Version: 2.1.4
Code
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.
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.