| Index: pkg/analyzer/test/src/context/context_test.dart
|
| diff --git a/pkg/analyzer/test/src/context/context_test.dart b/pkg/analyzer/test/src/context/context_test.dart
|
| index d0ec5b2caf846d1904e2f845397d03d38a043542..28dceb7827ec000b3d7a53556cfb2ac0cb3c240c 100644
|
| --- a/pkg/analyzer/test/src/context/context_test.dart
|
| +++ b/pkg/analyzer/test/src/context/context_test.dart
|
| @@ -3220,6 +3220,29 @@ class A {
|
| _assertValid(b, LIBRARY_ERRORS_READY);
|
| }
|
|
|
| + void test_enum_add() {
|
| + Source a = addSource(
|
| + '/a.dart',
|
| + r'''
|
| +main() {
|
| + print(MyEnum.A);
|
| +}
|
| +''');
|
| + _performPendingAnalysisTasks();
|
| + // Insert a new enum declaration.
|
| + // No errors expected.
|
| + context.setContents(
|
| + a,
|
| + r'''
|
| +main() {
|
| + print(MyEnum.A);
|
| +}
|
| +enum MyEnum { A, B, C }
|
| +''');
|
| + _performPendingAnalysisTasks();
|
| + expect(context.getErrors(a).errors, isEmpty);
|
| + }
|
| +
|
| void test_private_class() {
|
| Source a = addSource(
|
| '/a.dart',
|
|
|