Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1715)

Unified Diff: pkg/analyzer/test/src/task/strong/inferred_type_test.dart

Issue 1568643002: clean up generic methods in resolution (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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': '''

Powered by Google App Engine
This is Rietveld 408576698