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

Unified Diff: pkg/analyzer/test/src/dart/analysis/driver_test.dart

Issue 2668423003: Fix for resynthesizing with multiply defined names. (Closed)
Patch Set: Created 3 years, 11 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/prelink.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/dart/analysis/driver_test.dart
diff --git a/pkg/analyzer/test/src/dart/analysis/driver_test.dart b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
index b1e35f5e900191c27b4783258cbe936bd586a9d0..42655a4cab1643be69173ef439ad7f7ae6c068dc 100644
--- a/pkg/analyzer/test/src/dart/analysis/driver_test.dart
+++ b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
@@ -1005,6 +1005,16 @@ String z = "string";
}
}
+ test_getResult_nameConflict_local() async {
+ String content = r'''
+foo([p = V]) {}
+V();
+var V;
+''';
+ addTestFile(content);
+ await driver.getResult(testFile);
+ }
+
test_getResult_noErrors_ifNotAdded() async {
var a = _p('/test/lib/a.dart');
provider.newFile(a, 'A a = null;');
« no previous file with comments | « pkg/analyzer/lib/src/summary/prelink.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698