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

Unified Diff: tests/compiler/dart2js/deferred_not_in_main_test.dart

Issue 169703003: Add prefix constraints for deferred imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: tests/compiler/dart2js/deferred_not_in_main_test.dart
diff --git a/tests/compiler/dart2js/deferred_not_in_main_test.dart b/tests/compiler/dart2js/deferred_not_in_main_test.dart
index e27e6896a10194033867e56f9ee8fdd5d6ccdcd3..a7002c282e57ac7a48a73afd6233b674df98ca4d 100644
--- a/tests/compiler/dart2js/deferred_not_in_main_test.dart
+++ b/tests/compiler/dart2js/deferred_not_in_main_test.dart
@@ -68,12 +68,12 @@ void main() {
library lib1;
import 'dart:async';
-@def import 'lib2.dart';
+@def import 'lib2.dart' as lib2;
const def = const DeferredLibrary('lib2');
void foo1() {
- def.load().then((_) => foo2());
+ def.load().then((_) => lib2.foo2());
}
""",
"lib2.dart":"""

Powered by Google App Engine
This is Rietveld 408576698