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

Unified Diff: language/src/Prefix3NegativeTest.dart

Issue 9398002: - Add tests for the new prefix specifications. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/tests/
Patch Set: '' Created 8 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 | « language/src/Prefix101Test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: language/src/Prefix3NegativeTest.dart
===================================================================
--- language/src/Prefix3NegativeTest.dart (revision 4199)
+++ language/src/Prefix3NegativeTest.dart (working copy)
@@ -4,10 +4,11 @@
//
// Using the same prefix name while importing two different libraries is
-// an error.
+// 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");
-#import("library2.dart", prefix: "lib2");
+#import("library1.dart", prefix: "lib2"); // defines 'foo'.
+#import("library2.dart", prefix: "lib2"); // alsi defines 'foo'.
hausner 2012/02/14 23:20:47 alsi -> also
siva 2012/02/14 23:36:02 Done.
class Prefix3NegativeTest {
static Main() {
« no previous file with comments | « language/src/Prefix101Test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698