Index: pkg/analyzer/test/src/summary/resynthesize_common.dart |
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart |
index 5cbe2e9ead90d02675119aeee2da76ddd8440c8b..5d2a096d9443d7383f305e0560d3e781f2b37a68 100644 |
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart |
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart |
@@ -5483,6 +5483,36 @@ final dynamic vIndex; |
} |
} |
+ test_constExpr_pushReference_enum_method() { |
+ var library = checkLibrary(''' |
+enum E {a} |
+final vToString = E.a.toString(); |
+'''); |
+ if (isStrongMode) { |
+ checkElementText( |
+ library, |
+ r''' |
+enum E { |
+ final int index; |
+ static const List<E> values; |
+ static const E a; |
+} |
+final String vToString; |
+'''); |
+ } else { |
+ checkElementText( |
+ library, |
+ r''' |
+enum E { |
+ final int index; |
+ static const List<E> values; |
+ static const E a; |
+} |
+final dynamic vToString; |
+'''); |
+ } |
+ } |
+ |
test_constExpr_pushReference_field_simpleIdentifier() { |
var library = checkLibrary(''' |
class C { |