| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 'dart:math'; | 5 import 'dart:math'; |
| 6 import 'package:expect/expect.dart'; | 6 import 'package:expect/expect.dart'; |
| 7 | 7 |
| 8 void testInstantiateToBounds() { | 8 void testInstantiateToBounds() { |
| 9 f<T extends num, U extends T>() => [T, U]; | 9 f<T extends num, U extends T>() => [T, U]; |
| 10 g<T extends List<U>, U extends int>() => [T, U]; | 10 g<T extends List<U>, U extends int>() => [T, U]; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 Expect.equals(g.runtimeType.toString(), '<T, U>(T, U) -> num'); | 69 Expect.equals(g.runtimeType.toString(), '<T, U>(T, U) -> num'); |
| 70 Expect.equals(h(42, 123.0), '<T, U>(T, U) -> String'); | 70 Expect.equals(h(42, 123.0), '<T, U>(T, U) -> String'); |
| 71 } | 71 } |
| 72 | 72 |
| 73 main() { | 73 main() { |
| 74 testInstantiateToBounds(); | 74 testInstantiateToBounds(); |
| 75 testToString(); | 75 testToString(); |
| 76 testChecksBound(); | 76 testChecksBound(); |
| 77 testSubtype(); | 77 testSubtype(); |
| 78 } | 78 } |
| OLD | NEW |