-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
improve-diagnosticsRelated to the quality of diagnostic messagesRelated to the quality of diagnostic messageslegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.
Description
enum E { // Analyzer error. The enum must have at least one constant. Try declaring a constant.
;
static const c = 0;
}
I'd say that this enum has one constant. CFE error message in this case is better. It is "An enum declaration can't be empty.".
Dart SDK version: 3.8.0-66.0.dev (dev) (Sun Feb 2 20:05:47 2025 -0800) on "windows_x64"
Metadata
Metadata
Assignees
Labels
improve-diagnosticsRelated to the quality of diagnostic messagesRelated to the quality of diagnostic messageslegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.