Skip to content

dart2js crashes on nullable bools in checked mode #3146

@nex3

Description

@nex3

The following code throws an error when run with enable_type_checks and enable_asserts under frog:

  bool foo(a) => a;

  main() {
    print(foo(null));
  }

This is unexpected, since Dart allows null as a value of bool.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions