| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Dart test for generic types. | 4 // Dart test for generic types. |
| 5 | 5 |
| 6 import "package:expect/expect.dart"; | 6 import "package:expect/expect.dart"; |
| 7 | 7 |
| 8 class GenericsTest<T, V> implements Map<int, int> { | 8 class GenericsTest<T, V> implements Map<int, int> { |
| 9 static int myFunc(bool a, bool b) { | 9 static int myFunc(bool a, bool b) { |
| 10 Expect.equals(true, a); | 10 Expect.equals(true, a); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 LongGeneric<String, A, LongGeneric<C, List<E>, Map<G, Map<I, J>>>> id; | 44 LongGeneric<String, A, LongGeneric<C, List<E>, Map<G, Map<I, J>>>> id; |
| 45 | 45 |
| 46 LongGeneric<num, Map<int, int>, | 46 LongGeneric<num, Map<int, int>, |
| 47 LongGeneric<C, List<E>, Map<G, LongGeneric<I, J, List<A>>>>> id2; | 47 LongGeneric<C, List<E>, Map<G, LongGeneric<I, J, List<A>>>>> id2; |
| 48 } | 48 } |
| 49 } | 49 } |
| 50 | 50 |
| 51 main() { | 51 main() { |
| 52 GenericsTest.testMain(); | 52 GenericsTest.testMain(); |
| 53 } | 53 } |
| OLD | NEW |