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

Unified Diff: tests/language/prefix3_negative_test.dart

Issue 10823396: Implement import scope (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « tests/language/library6_negative_test.dart ('k') | tests/language/pseudo_kw_illegal_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/prefix3_negative_test.dart
===================================================================
--- tests/language/prefix3_negative_test.dart (revision 10922)
+++ tests/language/prefix3_negative_test.dart (working copy)
@@ -6,15 +6,12 @@
// Using the same prefix name while importing two different libraries is
// not an error but both library1.dart and library2.dart define 'foo' which
// results in a duplicate definition error.
+
#library("Prefix3NegativeTest.dart");
#import("library1.dart", prefix: "lib2"); // defines 'foo'.
#import("library2.dart", prefix: "lib2"); // also defines 'foo'.
-class Prefix3NegativeTest {
- static Main() {
- }
-}
main() {
- Prefix3NegativeTest.Main();
+ lib2.foo = 1;
}
« no previous file with comments | « tests/language/library6_negative_test.dart ('k') | tests/language/pseudo_kw_illegal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698