Index: sdk/lib/_internal/compiler/implementation/lib/js_number.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_number.dart b/sdk/lib/_internal/compiler/implementation/lib/js_number.dart |
index e95d651f4b5a99d53bb378a8ab80d082b78a0b18..b6219e718ca6044f7f92462d8b3f98c5bc5e62be 100644 |
--- a/sdk/lib/_internal/compiler/implementation/lib/js_number.dart |
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_number.dart |
@@ -94,7 +94,9 @@ class JSNumber extends Interceptor implements num { |
return this; |
} |
- double toDouble() => this; |
+ // The return type is intentionally omitted to avoid type checker warnings |
+ // from assigning JSNumber to double. |
+ toDouble() => this; |
String toStringAsFixed(int fractionDigits) { |
checkNum(fractionDigits); |