Compile-time error message about a non-joined variable usage doesn't state the reason clearly #51604
Labels
improve-diagnostics
Related to the quality of diagnostic messages
legacy-area-front-end
Legacy: Use area-dart-model instead.
Consider the following program. Compiling it results in an error: the variable with name
a
isn't captured by every head of the switch case, so it can't be used in the case body. However, the error message produced by the CFE isn't very helpful in this case, simply stating thata
is undefined in the body.The text was updated successfully, but these errors were encountered: