Skip to content

CFE: Missing error when awaiting a void expression #33416

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

Closed
leafpetersen opened this issue Jun 11, 2018 · 2 comments
Closed

CFE: Missing error when awaiting a void expression #33416

leafpetersen opened this issue Jun 11, 2018 · 2 comments
Assignees
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue front-end-missing-error legacy-area-front-end Legacy: Use area-dart-model instead.

Comments

@leafpetersen
Copy link
Member

The snippet below should be an error per the static analysis section of https://github.com/dart-lang/sdk/blob/master/docs/language/informal/generalized-void.md .

import 'dart:async';

void returnsVoid() {}

main() async {
  await returnsVoid();
}
@dgrove
Copy link
Contributor

dgrove commented Jun 15, 2018

per #33415, this is not caught by the analyzer.

@natebosch
Copy link
Member

Closing as unplanned since it's a breaking change to fix it and we've decided it's not worth the effort to clean up. As per #33823 we will hopefully be able to make this show up in the analyzer but can't add it to CFE.

@natebosch natebosch added the closed-not-planned Closed as we don't intend to take action on the reported issue label Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue front-end-missing-error legacy-area-front-end Legacy: Use area-dart-model instead.
Projects
None yet
Development

No branches or pull requests

4 participants