declare var m : ?mixed;
if (typeof m === 'object' && m) {
/*snip*/
}
if (typeof m === 'object') {
if (m) {
}
}
In the first case flow-lint reports a sketchy-null-mixed error, while in the second case it does not. I think that flow should not report an error in both cases, since the only falsy value with type === 'object' is null.
Consider these 2 snippets:
In the first case flow-lint reports a
sketchy-null-mixed
error, while in the second case it does not. I think that flow should not report an error in both cases, since the only falsy value with type === 'object' isnull
.