diff --git a/pkg/analyzer/messages.yaml b/pkg/analyzer/messages.yaml index a2edd39ecb84..71bdfbd82f19 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.