Skip to content

Better error message in declarations of final and const variables without a value #42610

Closed
@jjosenaldo

Description

@jjosenaldo

In commands like final x;, const x;, final int x; and const int x;, the error message showed is The final variable ';' must be initialized. It would be better if it was The final variable 'x' must be initialized instead.

Metadata

Metadata

Assignees

Labels

legacy-area-front-endLegacy: Use area-dart-model instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions