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
Make it an error to await voidExpression
#932
Comments
eernstg
added
feature
Proposed language feature that solves one or more problems
nnbd
NNBD related issues
labels
Apr 17, 2020
It's fine by me. If @lrhn agrees with this change, we'd need a volunteer to spec it, write tests and file implementation issues. |
I'm always fine with disallowing use of |
Spec update in #933. |
Tests added in https://dart-review.googlesource.com/c/sdk/+/144140. |
This was referenced Apr 21, 2020
Tests and spec have landed, issues filed. I'm going to close this out. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the release of Dart 2, it turned out to be a more seriously breaking change than anticipated to make it an error to
await e
in the case wheree
has static typevoid
.Shouldn't we fix this now where null-safety is being introduced?
@leafpetersen, @lrhn, @munificent, WDYT?
The text was updated successfully, but these errors were encountered: