Skip to content

CFE: Missing error when awaiting a void expression #33416

Closed
@leafpetersen

Description

@leafpetersen

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();
}

Activity

dgrove

dgrove commented on Jun 15, 2018

@dgrove
Contributor

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

natebosch

natebosch commented on Jul 11, 2018

@natebosch
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @kmillikin@dgrove@natebosch@leafpetersen

      Issue actions

        CFE: Missing error when awaiting a void expression · Issue #33416 · dart-lang/sdk