Skip to content

Specify that 'await voidExpression' is allowed #846

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

Merged
merged 2 commits into from
Feb 20, 2020

Conversation

eernstg
Copy link
Member

@eernstg eernstg commented Feb 19, 2020

We decided dart-lang/sdk#33415 that await e cannot be a compile-time error when the static type of e is void (that would have been nice, but it was too breaking). This PR updates the language specification to specify this.

@eernstg eernstg requested a review from lrhn February 19, 2020 17:32
@lrhn
Copy link
Member

lrhn commented Feb 19, 2020

LGTM

@lrhn
Copy link
Member

lrhn commented Feb 19, 2020

Any chance we could change this for NNBD? We're breaking things anyway ... :)

@eernstg
Copy link
Member Author

eernstg commented Feb 20, 2020

That would indeed be nice! But breaking more and more things also makes the migration harder, so we do need to justify every bit of it.

@eernstg eernstg merged commit ed0df6c into master Feb 20, 2020
@eernstg eernstg deleted the specify_await_void_ok_feb20 branch February 20, 2020 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants