[cfe] Surprising error message for expression in guard #51898
Labels
improve-diagnostics
Related to the quality of diagnostic messages
legacy-area-front-end
Legacy: Use area-dart-model instead.
Consider the following program:
This program is rejected by the CFE (3.0.0-366.0.dev) with a surprising error message:
This error message is surprising because there is no requirement that the expression in a guard must be constant (indeed, that wouldn't make sense).
The text was updated successfully, but these errors were encountered: