You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand the following may be a tricky scenario for the analyzer, but just putting this here in case it can be fixed:
import'dart:math'show Random;
voidmain() {
int? x;
if (Random().nextBool()) {
x =5;
}
if (x ==null) return;
voidf() {
var y = x *2; // The operator '*' can't be unconditionally invoked because the receiver can be 'null'.print(y);
}
f();
}
f() is never called when x can be null.
This issue probably exists in some form, but I couldn't find it.
The text was updated successfully, but these errors were encountered:
I understand the following may be a tricky scenario for the analyzer, but just putting this here in case it can be fixed:
f()
is never called whenx
can benull
.This issue probably exists in some form, but I couldn't find it.
The text was updated successfully, but these errors were encountered: