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

Unified Diff: pkg/fixnum/int32.dart

Issue 11191078: Make hashCode a getter and not a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 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/fixnum/int32.dart
diff --git a/pkg/fixnum/int32.dart b/pkg/fixnum/int32.dart
index 3787dc89052261f33f6bb35877d7fe7e4591763e..60d16292f75b0f20f9bcebdc92fd2bb028b3af31 100644
--- a/pkg/fixnum/int32.dart
+++ b/pkg/fixnum/int32.dart
@@ -328,7 +328,7 @@ class int32 implements intx {
bool isOdd() => (_i & 0x1) == 1;
bool isZero() => _i == 0;
- int hashCode() => _i;
+ int get hashCode => _i;
int32 abs() => _i < 0 ? new int32.fromInt(-_i) : this;

Powered by Google App Engine
This is Rietveld 408576698