Possible bug in diagnostics for mustBeConst
#55573
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
type-question
A question about expected behavior or functionality
I would expect the following code to be valid, but it generated a diagnostic claiming that the argument to
g
isn't a constant expression, even though it is a constant expression:Is that behavior intentional? Is it intended that only uses of const variables is allowed?
The text was updated successfully, but these errors were encountered: