Add a recovery test

Change-Id: Ia83bf94916627cdab43026c36a4cebeade66b828
Reviewed-on: https://dart-review.googlesource.com/63441
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
diff --git a/pkg/analyzer/test/src/fasta/recovery/partial_code/parameter_test.dart b/pkg/analyzer/test/src/fasta/recovery/partial_code/parameter_test.dart
new file mode 100644
index 0000000..ba995b5
--- /dev/null
+++ b/pkg/analyzer/test/src/fasta/recovery/partial_code/parameter_test.dart
@@ -0,0 +1,31 @@
+// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'package:analyzer/src/dart/error/syntactic_errors.dart';
+
+import 'partial_code_support.dart';
+
+main() {
+  new ParameterTest().buildAll();
+}
+
+class ParameterTest extends PartialCodeTest {
+  buildAll() {
+    buildTests(
+      'required',
+      [
+        new TestDescriptor(
+          'functionType_noIdentifier',
+          'f(Function(void)) {}',
+          [
+            ScannerErrorCode.EXPECTED_TOKEN,
+          ],
+          'f(Function(void) _s_) {}',
+          failing: ['eof'],
+        ),
+      ],
+      [],
+    );
+  }
+}
diff --git a/pkg/analyzer/test/src/fasta/recovery/partial_code/test_all.dart b/pkg/analyzer/test/src/fasta/recovery/partial_code/test_all.dart
index b7269e7..56d8b47 100644
--- a/pkg/analyzer/test/src/fasta/recovery/partial_code/test_all.dart
+++ b/pkg/analyzer/test/src/fasta/recovery/partial_code/test_all.dart
@@ -21,6 +21,7 @@
 import 'library_directive_test.dart' as library_directive;
 import 'local_variable_test.dart' as local_variable;
 import 'method_declaration_test.dart' as method_declaration;
+import 'parameter_test.dart' as parameter;
 import 'part_directive_test.dart' as part_directive;
 import 'part_of_directive_test.dart' as part_of_directive;
 import 'return_statement_test.dart' as return_statement;
@@ -50,6 +51,7 @@
     library_directive.main();
     local_variable.main();
     method_declaration.main();
+    parameter.main();
     part_directive.main();
     part_of_directive.main();
     return_statement.main();