Index: pkg/analyzer/test/src/summary/summary_common.dart |
diff --git a/pkg/analyzer/test/src/summary/summary_common.dart b/pkg/analyzer/test/src/summary/summary_common.dart |
index 85871dd17beea6da14d4af8239f7054cc34f7868..9e127057a4a4f7163e760a59c23d176448b7a8c8 100644 |
--- a/pkg/analyzer/test/src/summary/summary_common.dart |
+++ b/pkg/analyzer/test/src/summary/summary_common.dart |
@@ -6021,6 +6021,16 @@ int foo(int a, String b) => 0; |
} |
} |
+ test_executable_param_isFinal() { |
+ String text = 'f(x, final y) {}'; |
+ UnlinkedExecutable executable = serializeExecutableText(text); |
+ expect(executable.parameters, hasLength(2)); |
+ expect(executable.parameters[0].name, 'x'); |
+ expect(executable.parameters[0].isFinal, isFalse); |
+ expect(executable.parameters[1].name, 'y'); |
+ expect(executable.parameters[1].isFinal, isTrue); |
+ } |
+ |
test_executable_param_no_flags() { |
UnlinkedExecutable executable = serializeExecutableText('f(x) {}'); |
expect(executable.parameters[0].isFunctionTyped, isFalse); |