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

Unified Diff: tests/standalone/package/packages/package1.dart

Issue 12880023: Remove legacy syntax support for library import (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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
Index: tests/standalone/package/packages/package1.dart
===================================================================
--- tests/standalone/package/packages/package1.dart (revision 20447)
+++ tests/standalone/package/packages/package1.dart (working copy)
@@ -2,11 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#library("package1");
+library package1;
-#import('package2.dart', prefix: 'p1');
-#import('package2.dart', prefix: 'p2');
-#import('package:package2.dart', prefix: 'p3');
+import 'package2.dart' as p1;
+import 'package2.dart' as p2;
+import 'package:package2.dart' as p3;
main() {
Expect.identical(p1.x, p2.x);
« no previous file with comments | « tests/standalone/package/packages/lib3/sub/lib3.dart ('k') | tests/standalone/package/packages/package2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698