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
asyncfunctionget_things(_: number|undefined){return[0];}asyncfunctionfoobar(){// The error goes away without the `| undefined`letbefore: number|undefined=undefined;// The error goes away without the loopfor(leti=0;i<2;i++){// The error goes away without the async/awaitconstresults=awaitget_things(before);// ^ 'results' implicitly has type 'any' because it does not have a type annotation// and is referenced directly or indirectly in its own initializer.before=results[0];}}
🙁 Actual behavior
This results in an error
'results' implicitly has type 'any' because it does not have a type annotation
and is referenced directly or indirectly in its own initializer.
🙂 Expected behavior
This should not be an error.
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer
await
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
This results in an error
🙂 Expected behavior
This should not be an error.
The text was updated successfully, but these errors were encountered: