Index: pkg/analyzer/test/src/task/strong/inferred_type_test.dart |
diff --git a/pkg/analyzer/test/src/task/strong/inferred_type_test.dart b/pkg/analyzer/test/src/task/strong/inferred_type_test.dart |
index a643e3ba87ead48ef17ef94674646e73d0528906..b44c3e896342297a7ed3c429d696a40d62153dfc 100644 |
--- a/pkg/analyzer/test/src/task/strong/inferred_type_test.dart |
+++ b/pkg/analyzer/test/src/task/strong/inferred_type_test.dart |
@@ -12,6 +12,18 @@ import 'package:unittest/unittest.dart'; |
import 'strong_test_helper.dart'; |
void main() { |
+ testChecker('!!! dart:math min/max', { |
Jennifer Messerly
2016/01/06 22:25:51
oops, this was for debugging, removed
|
+ '/main.dart': ''' |
+ import 'dart:math'; |
+ void printInt(int x) => null; |
+ void printDouble(double x) => null; |
+ |
+ main() { |
+ printInt(max(1, 2)); |
+ } |
+ ''' |
+ }); |
+ |
// Error also expected when declared type is `int`. |
testChecker('infer type on var', { |
'/main.dart': ''' |