From f563d46dad53d9045a991bf81e421d0f4431ebc2 Mon Sep 17 00:00:00 2001 From: Franklin Oladipo Date: Thu, 24 Oct 2024 12:45:48 +0100 Subject: [PATCH 1/2] modify ASSIGNMENT_TO_CONST error message --- pkg/analyzer/messages.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/analyzer/messages.yaml b/pkg/analyzer/messages.yaml index a2edd39ecb84..c14a3d12cdf8 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 re-assigned a value." correctionMessage: "Try removing the assignment, or remove the modifier 'const' from the variable." hasPublishedDocs: true comment: No parameters. From 6984375ec0ffb10e6187a704fee7e7d60bb2c2a7 Mon Sep 17 00:00:00 2001 From: "franklin.oladipo" Date: Wed, 6 Nov 2024 19:10:40 +0000 Subject: [PATCH 2/2] change ASSIGNMENT_TO_CONST error message --- pkg/analyzer/messages.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/analyzer/messages.yaml b/pkg/analyzer/messages.yaml index c14a3d12cdf8..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 re-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.