-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
【BUG】"await" should be a type error other than "Promise" #14976
Labels
Duplicate
An existing issue was already created
Comments
But that is OK. See the behavior of
|
Tslint has a rule for this. https://palantir.github.io/tslint/rules/await-promise/ |
Thank you. I am going to go turn that on. |
I understand. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
BUG
TypeScript Version:2.1.6
Code
Expected behavior:Type error
Actual behavior:Successful compilation
The text was updated successfully, but these errors were encountered: