Add a recovery test
Change-Id: I69cff9258f861d215861abd0920f3619285f7cfd
Reviewed-on: https://dart-review.googlesource.com/63984
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
index ba995b5..7298a30 100644
--- a/pkg/analyzer/test/src/fasta/recovery/partial_code/parameter_test.dart
+++ b/pkg/analyzer/test/src/fasta/recovery/partial_code/parameter_test.dart
@@ -24,6 +24,21 @@
'f(Function(void) _s_) {}',
failing: ['eof'],
),
+ new TestDescriptor(
+ 'typeArgument_noGt',
+ '''
+ class C<E> {}
+ f(C<int Function(int, int) c) {}
+ ''',
+ [
+ ScannerErrorCode.EXPECTED_TOKEN,
+ ],
+ '''
+ class C<E> {}
+ f(C<int Function(int, int)> c) {}
+ ''',
+ failing: ['eof'],
+ ),
],
[],
);