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

Unified Diff: tests/language/deferred_constraints_type_annotation_test.dart

Issue 201613006: Introduces the new syntax for deferred loading (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/language/deferred_constraints_type_annotation_test.dart
diff --git a/tests/language/deferred_constraints_type_annotation_test.dart b/tests/language/deferred_constraints_type_annotation_test.dart
index cd4cdf542568753680412935f12ec4c7c00e6e3a..3fbc238cd5ff318810fa22f795bdb9e9593851c6 100644
--- a/tests/language/deferred_constraints_type_annotation_test.dart
+++ b/tests/language/deferred_constraints_type_annotation_test.dart
@@ -2,15 +2,12 @@
// 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.
-import "dart:async";
import 'package:expect/expect.dart';
import 'package:async_helper/async_helper.dart';
-@lazy import "deferred_constraints_lib.dart" as lib;
+import "deferred_constraints_lib.dart" deferred as lib;
import "deferred_constraints_lib.dart" as lib2; /// type_annotation_non_deferred: ok
-const lazy = const DeferredLibrary('lib');
-
class F {}
class G2<T> {}
@@ -23,7 +20,7 @@ main() {
// In this case we do not defer C.
lib2.C a1 = new lib2.C(); /// type_annotation_non_deferred: continued
asyncStart();
- lazy.load().then((_) {
+ lib.loadLibrary().then((_) {
lib.C a2 = new lib.C(); /// type_annotation1: dynamic type error, static type warning
lib.G<F> a3 = new lib.G<F>(); /// type_annotation_generic1: dynamic type error, static type warning
G2<lib.C> a4 = new G2(); /// type_annotation_generic2: static type warning

Powered by Google App Engine
This is Rietveld 408576698