Bug Report
π Search Terms
await has no effect on type, 80007
π Version & Regression Information
- This is the behavior in every version I tried
β― Playground Link
Playground link with relevant code
π» Code
async function fn2<T extends Promise<void> | void>(a: T) {
await a; // reports 80007
}
π Actual behavior
It reports:
'await' has no effect on the type of this expression.(80007)
π Expected behavior
No problem should be reported here.