Open
Description
The code below produces an error in both CFE and the analyzer.
main() {
int i;
for (;; i = 42) { }
i; // Error: Non-nullable variable 'i' must be assigned before it can be used.
}
i
is definitely assigned here. Yes, it is in dead code, but definitely assigned.
Dart SDK version: 3.8.0-174.0.dev (dev) (Mon Mar 10 21:06:07 2025 -0700) on "windows_x64"