OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'package:expect/expect.dart'; | 5 import 'package:expect/expect.dart'; |
6 | 6 |
7 typedef O Convert<I, O>(I input); | 7 typedef O Convert<I, O>(I input); |
8 typedef Other(a, b); | 8 typedef Other(a, b); |
9 | 9 |
10 class Mixin<E> { | 10 class Mixin<E> { |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 test3() { | 38 test3() { |
39 Expect.isTrue(convert is Convert); | 39 Expect.isTrue(convert is Convert); |
40 Expect.isTrue(convert is Convert<String, String>); | 40 Expect.isTrue(convert is Convert<String, String>); |
41 Expect.isTrue(convert is Convert<String, int>); | 41 Expect.isTrue(convert is Convert<String, int>); |
42 Expect.isTrue(convert is Convert<int, String>); | 42 Expect.isTrue(convert is Convert<int, String>); |
43 Expect.isFalse(convert is Other); | 43 Expect.isFalse(convert is Other); |
44 } | 44 } |
45 | 45 |
46 main() { | 46 main() { |
47 test1(); /// 01: ok | 47 test1(); //# 01: ok |
48 test2(); /// 02: ok | 48 test2(); //# 02: ok |
49 test3(); /// 03: ok | 49 test3(); //# 03: ok |
50 } | 50 } |
OLD | NEW |