Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don’t error for missing await when promise is referenced in condition body #43593

Merged
merged 2 commits into from
Apr 13, 2021

Conversation

andrewbranch
Copy link
Member

Fixes #43514

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe now is a good time to reword the "always returns ... since it appears to" errors?

src/compiler/checker.ts Show resolved Hide resolved
@andrewbranch
Copy link
Member Author

@DanielRosenwasser are you alright with the error rewording?

@DanielRosenwasser
Copy link
Member

@andrewbranch I'm a little hurt that you want to undo all my hard work, but it's probably okay.

@andrewbranch andrewbranch merged commit 06a7365 into microsoft:master Apr 13, 2021
@ejose19
Copy link

ejose19 commented Jun 7, 2021

I think this broke original implementation, see playground (as in announcement). That exact code correctly errors out in beta playground.

@andrewbranch andrewbranch deleted the bug/43514 branch June 7, 2021 14:11
@andrewbranch
Copy link
Member Author

Well, that’s not great 😱

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent missing await in conditional errors, invalid quick fix
5 participants