Flow analysis. No promotion in case of shared case scope and assignment in when
part
#60708
Labels
area-dart-model
For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.
model-flow
Implementation of flow analysis in analyzer/cfe
If switch statement variable is assigned in
when
part then no promotion occurs if case scope is shared. Why there is no promotion intest2()
below?cc @stereotype441
Dart SDK version: 3.9.0-95.0.dev (dev) (Sun May 4 21:03:05 2025 -0700) on "windows_x64"
The text was updated successfully, but these errors were encountered: