| Index: test/checker/checker_test.dart
|
| diff --git a/test/checker/checker_test.dart b/test/checker/checker_test.dart
|
| index cc66130ae8ce20f0b5ddbb096ea47431f4737112..f435275541b24515f4d6087f2a2118b16d07525c 100644
|
| --- a/test/checker/checker_test.dart
|
| +++ b/test/checker/checker_test.dart
|
| @@ -2635,40 +2635,5 @@ void main() {
|
| Iterable<int> baz5() sync* { yield* (/*info:InferredTypeAllocation*/new Iterable()); }
|
| '''
|
| });
|
| -
|
| - testChecker('dart:math min/max', {
|
| - '/main.dart': '''
|
| - import 'dart:math';
|
| -
|
| - void printInt(int x) => print(x);
|
| - void printDouble(double x) => print(x);
|
| -
|
| - num myMax(num x, num y) => max(x, y);
|
| -
|
| - main() {
|
| - // Okay if static types match.
|
| - printInt(max(1, 2));
|
| - printInt(min(1, 2));
|
| - printDouble(max(1.0, 2.0));
|
| - printDouble(min(1.0, 2.0));
|
| -
|
| - // No help for user-defined functions from num->num->num.
|
| - printInt(/*info:DownCastImplicit*/myMax(1, 2));
|
| - printInt(myMax(1, 2) as int);
|
| -
|
| - // Mixing int and double means return type is num.
|
| - printInt(/*info:DownCastImplicit*/max(1, 2.0));
|
| - printInt(/*info:DownCastImplicit*/min(1, 2.0));
|
| - printDouble(/*info:DownCastImplicit*/max(1, 2.0));
|
| - printDouble(/*info:DownCastImplicit*/min(1, 2.0));
|
| -
|
| - // Types other than int and double are not accepted.
|
| - printInt(
|
| - /*info:DownCastImplicit*/min(
|
| - /*severe:StaticTypeError*/"hi",
|
| - /*severe:StaticTypeError*/"there"));
|
| - }
|
| - '''
|
| - });
|
| });
|
| }
|
|
|