diff --git a/pkg/analyzer/lib/src/error/codes.g.dart b/pkg/analyzer/lib/src/error/codes.g.dart index 2c818bbf355a..beb58fa66a5b 100644 --- a/pkg/analyzer/lib/src/error/codes.g.dart +++ b/pkg/analyzer/lib/src/error/codes.g.dart @@ -156,7 +156,7 @@ class CompileTimeErrorCode extends ErrorCode { /// No parameters. static const CompileTimeErrorCode ASSIGNMENT_TO_CONST = CompileTimeErrorCode( 'ASSIGNMENT_TO_CONST', - "Constant variables can't be assigned a value.", + "Constant variables can't be assigned a value after initialization.", correctionMessage: "Try removing the assignment, or remove the modifier 'const' from the " "variable.", diff --git a/pkg/analyzer/messages.yaml b/pkg/analyzer/messages.yaml index 526862d928d9..6f574c82522f 100644 --- a/pkg/analyzer/messages.yaml +++ b/pkg/analyzer/messages.yaml @@ -788,7 +788,7 @@ CompileTimeErrorCode: } ``` ASSIGNMENT_TO_CONST: - problemMessage: "Constant variables can't be assigned a value." + problemMessage: "Constant variables can't be assigned a value after initialization." correctionMessage: "Try removing the assignment, or remove the modifier 'const' from the variable." hasPublishedDocs: true comment: No parameters.