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

Unified Diff: sdk/lib/_internal/lib/js_number.dart

Issue 94303002: Add another type JSPositiveInt to show a range analysis in the inferrer would be very beneficial :-… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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: sdk/lib/_internal/lib/js_number.dart
===================================================================
--- sdk/lib/_internal/lib/js_number.dart (revision 30705)
+++ sdk/lib/_internal/lib/js_number.dart (working copy)
@@ -366,5 +366,6 @@
Type get runtimeType => double;
}
-class JSUInt32 extends JSInt {}
+class JSPositiveInt extends JSInt {}
sra1 2013/11/28 09:21:04 Zero is not positive. Nonnegative is a more accura
+class JSUInt32 extends JSPositiveInt {}
class JSUInt31 extends JSUInt32 {}

Powered by Google App Engine
This is Rietveld 408576698