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

Side by Side Diff: tests/language/deferred_regression_22995_test.dart

Issue 1019923005: Dart2js deferred loading. Follow types of functions when calculating dependencies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added test for generic type Created 5 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/language/deferred_regression_22995_lib.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // Test that closurizing a function implies a dependency on its type.
6
7 import "package:expect/expect.dart";
8
9 import 'deferred_regression_22995_lib.dart' deferred as lib;
10
11 class A {}
12 class B {}
13 class C {}
14
15 typedef Ti(int x);
16 typedef TB(B x);
17 typedef TTi(Ti x);
18 typedef Tg<T>(T x);
19
20 class T {
21 fA(A a) => null;
22 fTB(TB a) => null;
23 fTgC(Tg<C> a) => null;
24 }
25
26 main() {
27 Expect.isFalse(new T().fA is Ti);
28 Expect.isFalse(new T().fTB is TTi);
29 Expect.isFalse(new T().fTgC is TTi);
30 lib.loadLibrary().then((_) {
31 lib.foofoo();
32 });
33 }
34
OLDNEW
« no previous file with comments | « tests/language/deferred_regression_22995_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698