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

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

Issue 2655713002: Fix prelinker when a local name shadows an import prefix. (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/test/generated/compile_time_error_code_driver_test.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/summary_common.dart
diff --git a/pkg/analyzer/test/src/summary/summary_common.dart b/pkg/analyzer/test/src/summary/summary_common.dart
index 3c363dfb287657e198a86206df638f8fbc7c6bda..85871dd17beea6da14d4af8239f7054cc34f7868 100644
--- a/pkg/analyzer/test/src/summary/summary_common.dart
+++ b/pkg/analyzer/test/src/summary/summary_common.dart
@@ -8880,6 +8880,11 @@ D d;''');
checkTypeRef(findVariable('d').type, absUri('/a.dart'), 'a.dart', 'D');
}
+ test_localNameShadowsImportPrefix() {
+ serializeLibraryText('import "dart:async" as a; class a {}; a x;');
+ checkTypeRef(findVariable('x').type, null, null, 'a');
+ }
+
test_metadata_classDeclaration() {
checkAnnotationA(
serializeClassText('const a = null; @a class C {}').annotations);
« no previous file with comments | « pkg/analyzer/test/generated/compile_time_error_code_driver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698