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

Unified Diff: pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.strong.expect

Issue 2885963002: Implement type inference of static invocations. (Closed)
Patch Set: Created 3 years, 7 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/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.strong.expect b/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.strong.expect
index a320bc0069cef9df06ad3236a8590499fd4a65a9..ebbd34b800fdadfcd62d63bab5d3c37db99ec7e1 100644
--- a/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.strong.expect
+++ b/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.strong.expect
@@ -8,18 +8,18 @@ static method printInt(core::int x) → void
static method printDouble(core::double x) → void
return core::print(x);
static method myMax(core::num x, core::num y) → core::num
- return math::max(x, y);
+ return math::max<core::num>(x, y);
static method f() → dynamic {
- self::printInt(math::max(1, 2));
- self::printInt(math::min(1, 2));
- self::printDouble(math::max(1.0, 2.0));
- self::printDouble(math::min(1.0, 2.0));
+ self::printInt(math::max<core::int>(1, 2));
+ self::printInt(math::min<core::int>(1, 2));
+ self::printDouble(math::max<core::double>(1.0, 2.0));
+ self::printDouble(math::min<core::double>(1.0, 2.0));
self::printInt(self::myMax(1, 2));
self::printInt(self::myMax(1, 2) as core::int);
- self::printInt(math::max(1, 2.0));
- self::printInt(math::min(1, 2.0));
- self::printDouble(math::max(1, 2.0));
- self::printDouble(math::min(1, 2.0));
- self::printInt(math::min("hi", "there"));
+ self::printInt(math::max<core::int>(1, 2.0));
+ self::printInt(math::min<core::int>(1, 2.0));
+ self::printDouble(math::max<core::double>(1, 2.0));
+ self::printDouble(math::min<core::double>(1, 2.0));
+ self::printInt(math::min<core::int>("hi", "there"));
}
static method main() → dynamic {}

Powered by Google App Engine
This is Rietveld 408576698