-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Closed as not planned
Copy link
Labels
area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.model-flowImplementation of flow analysis in analyzer/cfeImplementation of flow analysis in analyzer/cfetype-questionA question about expected behavior or functionalityA question about expected behavior or functionality
Description
UPD. Seems that according to the #42232 (comment) the below is not an issue but an expected behavior. Please confirm.
The code below produces no compile-time errors in either CFE or the analyzer.
main() {
late int i;
do {
break;
} while ((i = 42) < 0);
i; // Definitely unassigned but no compile-time error
}Dart SDK version: 3.8.0-197.0.dev (dev) (Sat Mar 15 17:07:22 2025 -0700) on "windows_x64"
Metadata
Metadata
Assignees
Labels
area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.model-flowImplementation of flow analysis in analyzer/cfeImplementation of flow analysis in analyzer/cfetype-questionA question about expected behavior or functionalityA question about expected behavior or functionality