Index: pkg/analyzer/test/generated/declaration_resolver_test.dart |
diff --git a/pkg/analyzer/test/generated/declaration_resolver_test.dart b/pkg/analyzer/test/generated/declaration_resolver_test.dart |
index 79bf1cf4ea24f202441ff9f51d44eac2c6ad350e..35eda1574b2e1e9658aa6e8728ed0b619608d6f7 100644 |
--- a/pkg/analyzer/test/generated/declaration_resolver_test.dart |
+++ b/pkg/analyzer/test/generated/declaration_resolver_test.dart |
@@ -258,6 +258,18 @@ class DeclarationResolverTest extends ResolverTestCase { |
super.setUp(); |
} |
+ void test_enumConstant_partiallyResolved() { |
+ String code = r''' |
+enum Fruit {apple, pear} |
+'''; |
+ Source source = addNamedSource('/test.dart', code); |
+ LibrarySpecificUnit target = new LibrarySpecificUnit(source, source); |
+ analysisContext.computeResult(source, LIBRARY_ELEMENT1); |
+ CompilationUnit unit = |
+ analysisContext.computeResult(target, RESOLVED_UNIT1); |
+ CompilationUnit unit2 = _cloneResolveUnit(unit); |
+ } |
+ |
void test_functionDeclaration_getter() { |
String code = r''' |
int get zzz => 42; |