| 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 96bfa3adaadecc4a473a4203d9c9708b42d60909..9c605211c71c457371ffbfd77ac076ae65830ad8 100644
|
| --- a/pkg/analyzer/test/generated/parser_test.dart
|
| +++ b/pkg/analyzer/test/generated/parser_test.dart
|
| @@ -3946,6 +3946,16 @@ m() {
|
| ]);
|
| }
|
|
|
| + void test_typedef_namedFunction() {
|
| + // TODO(brianwilkerson) Improve recovery for this case.
|
| + parseCompilationUnit('typedef void Function();', [
|
| + ParserErrorCode.UNEXPECTED_TOKEN,
|
| + ParserErrorCode.MISSING_IDENTIFIER,
|
| + ParserErrorCode.EXPECTED_EXECUTABLE,
|
| + ParserErrorCode.MISSING_TYPEDEF_PARAMETERS
|
| + ]);
|
| + }
|
| +
|
| void test_typedefInClass_withoutReturnType() {
|
| parseCompilationUnit(
|
| "class C { typedef F(x); }", [ParserErrorCode.TYPEDEF_IN_CLASS]);
|
|
|