| 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
|
|
|