| 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 ede068cdb33c8c074a4514085987c172380b4613..bb26a20d8037b4faa8c867d80ee82c7bde49fd93 100644
|
| --- a/pkg/analyzer/test/generated/parser_test.dart
|
| +++ b/pkg/analyzer/test/generated/parser_test.dart
|
| @@ -840,6 +840,18 @@ class ErrorParserTest extends ParserTestCase {
|
| ParserTestCase.parseStatement("() {for (; x;) {break;}};");
|
| }
|
|
|
| + void test_classInClass_abstract() {
|
| + ParserTestCase.parseCompilationUnit(
|
| + "class C { abstract class B {} }",
|
| + [ParserErrorCode.CLASS_IN_CLASS]);
|
| + }
|
| +
|
| + void test_classInClass_nonAbstract() {
|
| + ParserTestCase.parseCompilationUnit(
|
| + "class C { class B {} }",
|
| + [ParserErrorCode.CLASS_IN_CLASS]);
|
| + }
|
| +
|
| void test_classTypeAlias_abstractAfterEq() {
|
| // This syntax has been removed from the language in favor of
|
| // "abstract class A = B with C;" (issue 18098).
|
| @@ -2340,6 +2352,18 @@ class ErrorParserTest extends ParserTestCase {
|
| [ParserErrorCode.TOP_LEVEL_OPERATOR]);
|
| }
|
|
|
| + void test_typedefInClass_withoutReturnType() {
|
| + ParserTestCase.parseCompilationUnit(
|
| + "class C { typedef F(x); }",
|
| + [ParserErrorCode.TYPEDEF_IN_CLASS]);
|
| + }
|
| +
|
| + void test_typedefInClass_withReturnType() {
|
| + ParserTestCase.parseCompilationUnit(
|
| + "class C { typedef int F(int x); }",
|
| + [ParserErrorCode.TYPEDEF_IN_CLASS]);
|
| + }
|
| +
|
| void test_unexpectedTerminatorForParameterGroup_named() {
|
| ParserTestCase.parse4(
|
| "parseFormalParameterList",
|
|
|