Error for missing await in conditional #25330
Labels
Breaking Change
Would introduce errors in existing code
In Discussion
Not yet reached consensus
Suggestion
An idea for TypeScript
Milestone
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 3.0.0-dev.20180626
Search Terms:
Code
Expected behavior:
A warning or error or suggestion is generated in the
if
conditional since it will always be true. The user almost certainly intended to await the result offoo
instead.Possibly also have a quick fix to add the await
Actual behavior:
No errors or warnings. Code does unexpected things
The text was updated successfully, but these errors were encountered: