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 bd1c556a1ce8af1fd7f514c343471792ad62298c..3dd04d41b917e7a3b0e9a96994ab2c663bd3e59a 100644 |
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart |
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart |
@@ -2454,6 +2454,21 @@ final dynamic f; |
} |
} |
+ test_const_finalField_hasConstConstructor() async { |
+ var library = await checkLibrary(r''' |
+class C { |
+ final int f = 42; |
+ const C(); |
+} |
+'''); |
+ checkElementText(library, r''' |
+class C { |
+ final int f = 42; |
+ const C(); |
+} |
+'''); |
+ } |
+ |
test_const_invalid_field_const() async { |
variablesWithNotConstInitializers.add('f'); |
var library = await checkLibrary(r''' |