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

Unified Diff: runtime/lib/integers.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: runtime/lib/integers.dart
diff --git a/runtime/lib/integers.dart b/runtime/lib/integers.dart
index f2b46b7543d2b1ffef2fc879df1477698a2dd6a6..9fcab19b6e9abf9a8995061db13b8b2d81eb6864 100644
--- a/runtime/lib/integers.dart
+++ b/runtime/lib/integers.dart
@@ -185,7 +185,7 @@ class _Smi extends _IntegerImplementation implements int {
throw const UnsupportedOperationException(
"_Smi can only be allocated by the VM");
}
- int hashCode() {
+ int get hashCode {
return this;
}
int operator ~() native "Smi_bitNegate";
@@ -199,7 +199,7 @@ class _Mint extends _IntegerImplementation implements int {
throw const UnsupportedOperationException(
"_Mint can only be allocated by the VM");
}
- int hashCode() {
+ int get hashCode {
return this;
}
int operator ~() native "Mint_bitNegate";
@@ -224,7 +224,7 @@ class _Bigint extends _IntegerImplementation implements int {
throw const UnsupportedOperationException(
"_Bigint can only be allocated by the VM");
}
- int hashCode() {
+ int get hashCode {
return this;
}
int operator ~() native "Bigint_bitNegate";

Powered by Google App Engine
This is Rietveld 408576698