| 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 524d0511afddc9bb716037a622ee19c3ccabd53f..78c7934115d60f0406553fc6d072d466537ae5ea 100644
|
| --- a/pkg/analyzer/test/generated/parser_test.dart
|
| +++ b/pkg/analyzer/test/generated/parser_test.dart
|
| @@ -917,6 +917,16 @@ class ErrorParserTest extends ParserTestCase {
|
| ], "enum E {}", [ParserErrorCode.EMPTY_ENUM_BODY]);
|
| }
|
|
|
| + void test_enumInClass() {
|
| + ParserTestCase.parseCompilationUnit(r'''
|
| +class Foo {
|
| + enum Bar {
|
| + Bar1, Bar2, Bar3
|
| + }
|
| +}
|
| +''', [ParserErrorCode.ENUM_IN_CLASS]);
|
| + }
|
| +
|
| void test_equalityCannotBeEqualityOperand_eq_eq() {
|
| ParserTestCase.parseExpression(
|
| "1 == 2 == 3", [ParserErrorCode.EQUALITY_CANNOT_BE_EQUALITY_OPERAND]);
|
|
|