Skip to content

Erroneous type tests with nullable primitive types #42851

@nshahan

Description

@nshahan

bool, num, double, and String produce the wrong result when evaluating type tests of the form:

null is bool?

It looks like ddc accidentally drops the nullability of the type in the test when they are represented as js primatives.

int works as expected though.

Metadata

Metadata

Assignees

Labels

NNBDIssues related to NNBD Releasearea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-dev-compiler

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions