Promotion and ??
#1658
Labels
flow-analysis
Discussions about possible future improvements to flow analysis
question
Further information is requested
Was just informed that
bool? foo = ...; if (foo ?? false) print(!foo);
does not promotefoo
to non-null in the "then" branch, even though the otherwise equivalentif (foo != null ? foo : false) print(!foo);
does.Is this deliberate, a flaw in the analysis spec, or a bug?
The text was updated successfully, but these errors were encountered: