| 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 // Test that generic methods can be specialized after being torn off, and that | 5 // Test that generic methods can be specialized after being torn off, and that |
| 6 // their specialized versions are correctly constructed. | 6 // their specialized versions are correctly constructed. |
| 7 | 7 |
| 8 library generic_methods_tearoff_specialization_test; | 8 library generic_methods_tearoff_specialization_test; |
| 9 | 9 |
| 10 import "package:expect/expect.dart"; | 10 import "package:expect/expect.dart"; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 Expect.isTrue(h is! Int2Int); | 38 Expect.isTrue(h is! Int2Int); |
| 39 Expect.isTrue(h is! String2String); | 39 Expect.isTrue(h is! String2String); |
| 40 Expect.isTrue(h is Object2Object); | 40 Expect.isTrue(h is Object2Object); |
| 41 Expect.isTrue(g is! GenericMethod); | 41 Expect.isTrue(g is! GenericMethod); |
| 42 | 42 |
| 43 Expect.isTrue(generic is! Int2Int); | 43 Expect.isTrue(generic is! Int2Int); |
| 44 Expect.isTrue(generic is! String2String); | 44 Expect.isTrue(generic is! String2String); |
| 45 Expect.isTrue(generic is! Object2Object); | 45 Expect.isTrue(generic is! Object2Object); |
| 46 Expect.isTrue(generic is GenericMethod); | 46 Expect.isTrue(generic is GenericMethod); |
| 47 } | 47 } |
| OLD | NEW |