Errors reported by ConstantEvaluationValidator should be made more specific #47061
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
Right now most errors use the default error, "Const variables must be initialized with a constant value." (const_initialized_with_non_constant_value). Each case can be given more information though, .e.g "constructor reference used in constant expression must be a const constructor."
The text was updated successfully, but these errors were encountered: