| 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 class GenericsTest<T,V> implements Map<int, int> { | 6 class GenericsTest<T,V> implements Map<int, int> { |
| 7 static int myFunc(bool a, bool b) { | 7 static int myFunc(bool a, bool b) { |
| 8 Expect.equals(true, a); | 8 Expect.equals(true, a); |
| 9 Expect.equals(false, b); | 9 Expect.equals(false, b); |
| 10 return 42; | 10 return 42; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 LongGeneric< | 77 LongGeneric< |
| 78 C, | 78 C, |
| 79 List<E>, | 79 List<E>, |
| 80 Map<G, LongGeneric<I, J, List<A>>>>> id2; | 80 Map<G, LongGeneric<I, J, List<A>>>>> id2; |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| 84 main() { | 84 main() { |
| 85 GenericsTest.testMain(); | 85 GenericsTest.testMain(); |
| 86 } | 86 } |
| OLD | NEW |