InferrerVisitor doesn't assume that loop conditionals are always executed at least once #14954
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
web-dart2js
This leads the inference to infer that in:
var foo = null;
while (foo = 1) {}
foo has type nullable int although it could be inferred to be of type non-null int only.
The text was updated successfully, but these errors were encountered: