Index: pkg/analyzer/test/generated/parser_test.dart |
diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart |
index 57be2145924e32600f8fa2c00dabd32554017d6d..f1d872eb6b7509e189c74e72e847ed477d8917b8 100644 |
--- a/pkg/analyzer/test/generated/parser_test.dart |
+++ b/pkg/analyzer/test/generated/parser_test.dart |
@@ -2896,6 +2896,16 @@ class Foo { |
"void f(var x()) {}", [ParserErrorCode.FUNCTION_TYPED_PARAMETER_VAR]); |
} |
+ void test_genericFunctionType_extraLessThan() { |
+ createParser(''' |
+class Wrong<T> { |
+ T Function(<List<int> foo) bar; |
+}'''); |
+ CompilationUnit unit = parser.parseCompilationUnit2(); |
+ expectNotNullIfNoErrors(unit); |
+ listener.assertErrorsWithCodes([ParserErrorCode.UNEXPECTED_TOKEN]); |
+ } |
+ |
void test_getterInFunction_block_noReturnType() { |
FunctionDeclarationStatement statement = |
parseStatement("get x { return _x; }"); |