| 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 a torn off method of a generic class is not a generic method, | 5 // Test that a torn off method of a generic class is not a generic method, |
| 6 // and that it is correctly specialized. | 6 // and that it is correctly specialized. |
| 7 | 7 |
| 8 library generic_methods_generic_class_tearoff_test; | 8 library generic_methods_generic_class_tearoff_test; |
| 9 | 9 |
| 10 import "package:expect/expect.dart"; | 10 import "package:expect/expect.dart"; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 Expect.isTrue(g is! Int2Int); | 34 Expect.isTrue(g is! Int2Int); |
| 35 Expect.isTrue(g is String2String); | 35 Expect.isTrue(g is String2String); |
| 36 Expect.isTrue(g is Object2Object); | 36 Expect.isTrue(g is Object2Object); |
| 37 Expect.isTrue(g is! GenericMethod); | 37 Expect.isTrue(g is! GenericMethod); |
| 38 | 38 |
| 39 Expect.isTrue(h is! Int2Int); | 39 Expect.isTrue(h is! Int2Int); |
| 40 Expect.isTrue(h is! String2String); | 40 Expect.isTrue(h is! String2String); |
| 41 Expect.isTrue(h is Object2Object); | 41 Expect.isTrue(h is Object2Object); |
| 42 Expect.isTrue(h is! GenericMethod); | 42 Expect.isTrue(h is! GenericMethod); |
| 43 } | 43 } |
| OLD | NEW |