| Index: pkg/analyzer/test/src/dart/constant/utilities_test.dart
|
| diff --git a/pkg/analyzer/test/src/dart/constant/utilities_test.dart b/pkg/analyzer/test/src/dart/constant/utilities_test.dart
|
| index a922cf5247f9e534ac518e2c918dd4a80933930d..f4fd958ba676357c556a5e1c5282748028319671 100644
|
| --- a/pkg/analyzer/test/src/dart/constant/utilities_test.dart
|
| +++ b/pkg/analyzer/test/src/dart/constant/utilities_test.dart
|
| @@ -61,6 +61,15 @@ class ConstantFinderTest {
|
| expect(_findAnnotations(), contains(_node));
|
| }
|
|
|
| + void test_visitAnnotation_enumConstant() {
|
| + // Analyzer ignores annotations on enum constant declarations.
|
| + Annotation annotation = AstFactory.annotation2(
|
| + AstFactory.identifier3('A'), null, AstFactory.argumentList());
|
| + _node = new EnumConstantDeclaration(
|
| + null, <Annotation>[annotation], AstFactory.identifier3('C'));
|
| + expect(_findConstants(), isEmpty);
|
| + }
|
| +
|
| /**
|
| * Test an annotation that represents the invocation of a constant
|
| * constructor.
|
|
|