Index: pkg/analyzer/test/generated/static_warning_code_test.dart |
diff --git a/pkg/analyzer/test/generated/static_warning_code_test.dart b/pkg/analyzer/test/generated/static_warning_code_test.dart |
index 1d1b11c5091bdf2b5b185bdf6ec14a3c7705f1b1..c196f21897e7e4aed6b5a712e816bed2a54622a3 100644 |
--- a/pkg/analyzer/test/generated/static_warning_code_test.dart |
+++ b/pkg/analyzer/test/generated/static_warning_code_test.dart |
@@ -796,6 +796,16 @@ f() { |
verify([source]); |
} |
+ test_assignmentToFinal_parameter() async { |
+ Source source = addSource(r''' |
+f(final x) { |
+ x = 1; |
+}'''); |
+ await computeAnalysisResult(source); |
+ assertErrors(source, [StaticWarningCode.ASSIGNMENT_TO_FINAL]); |
+ verify([source]); |
+ } |
+ |
test_assignmentToFinal_postfixMinusMinus() async { |
Source source = addSource(r''' |
f() { |