Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_common.dart

Issue 2416863003: Fix summarization of closures in toplevel variable declarations in part files. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 faced5377a7d8ec62676d9acc8c79ed7b5d73a9e..5f1f61958f6a425ab47b32e094054fcbc7f77e64 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -1635,6 +1635,14 @@ f() {
''');
}
+ test_closure_in_variable_declaration_in_part() {
+ addSource('/a.dart', 'part of lib; final f = (int i) => i.toDouble();');
+ checkLibrary('''
+library lib;
+part "a.dart";
+''');
+ }
+
test_const_invalid_field_const() {
variablesWithNotConstInitializers.add('f');
checkLibrary(
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698