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

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

Issue 2689573002: Fix export + local when the library is also exported. (Closed)
Patch Set: Created 3 years, 10 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') | 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 dbbc1f103e1e7771062cef66a5451ceac68e016d..ff8565665fab4806e32b6936731c5161b46f8729 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -4411,6 +4411,22 @@ C v = null;
''');
}
+ test_nameConflict_exportedAndLocal_exported() {
+ namesThatCannotBeResolved.add('V');
+ addLibrarySource('/a.dart', 'class C {}');
+ addLibrarySource(
+ '/c.dart',
+ '''
+export 'a.dart';
+class C {}
+''');
+ addLibrarySource('/d.dart', 'export "c.dart";');
+ checkLibrary('''
+import 'd.dart';
+C v = null;
+''');
+ }
+
test_nameConflict_exportedAndParted() {
namesThatCannotBeResolved.add('V');
addLibrarySource('/a.dart', 'class C {}');
« no previous file with comments | « pkg/analyzer/lib/src/summary/prelink.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698