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

Unified Diff: tool/input_sdk/lib/math/math.dart

Issue 1554683002: Update to latest analyzer (Closed) Base URL: git@github.com:dart-lang/dev_compiler.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
« no previous file with comments | « tool/input_sdk/lib/internal/iterable.dart ('k') | tool/input_sdk/private/js_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/math/math.dart
diff --git a/tool/input_sdk/lib/math/math.dart b/tool/input_sdk/lib/math/math.dart
index 95ed261e2753eade411dd52f6e86202ca3a5e881..c575a3f05698299d8beddb0442be0deed7808b70 100644
--- a/tool/input_sdk/lib/math/math.dart
+++ b/tool/input_sdk/lib/math/math.dart
@@ -63,7 +63,7 @@ const double SQRT2 = 1.4142135623730951;
* same mathematical value) then it is unspecified which of the two arguments
* is returned.
*/
-num min(num a, num b) {
+num/*=T*/ min/*<T extends num>*/(num/*=T*/ a, num/*=T*/ b) {
// These partially redundant type checks improve code quality for dart2js.
// Most of the improvement is at call sites from the inferred non-null num
// return type.
@@ -98,7 +98,7 @@ num min(num a, num b) {
* otherwise equal (including int and doubles with the same mathematical value)
* then it is unspecified which of the two arguments is returned.
*/
-num max(num a, num b) {
+num/*=T*/ max/*<T extends num>*/(num/*=T*/ a, num/*=T*/ b) {
// These partially redundant type checks improve code quality for dart2js.
// Most of the improvement is at call sites from the inferred non-null num
// return type.
« no previous file with comments | « tool/input_sdk/lib/internal/iterable.dart ('k') | tool/input_sdk/private/js_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698