| OLD | NEW |
| (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 |
| OLD | NEW |