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

Unified Diff: pkg/fixnum/int32.dart

Issue 10911206: Remove support for operator negate and replace occurrences with unary (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « lib/core/num.dart ('k') | pkg/fixnum/int64.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fixnum/int32.dart
diff --git a/pkg/fixnum/int32.dart b/pkg/fixnum/int32.dart
index 7cbdcdc1f4e6cb3f71e0da40c20dc730372515d8..d9d8718342f1b9140269306f1f2f738c43a419a2 100644
--- a/pkg/fixnum/int32.dart
+++ b/pkg/fixnum/int32.dart
@@ -178,7 +178,7 @@ class int32 implements intx {
return new int32.fromInt(_i - _convert(other));
}
- int32 operator negate() => new int32.fromInt(-_i);
+ int32 operator -() => new int32.fromInt(-_i);
intx operator *(other) {
if (other is int64) {
« no previous file with comments | « lib/core/num.dart ('k') | pkg/fixnum/int64.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698