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

Unified Diff: lib/compiler/implementation/lib/core_patch.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: lib/compiler/implementation/lib/core_patch.dart
diff --git a/lib/compiler/implementation/lib/core_patch.dart b/lib/compiler/implementation/lib/core_patch.dart
index 9641920b0ca5ae0ec2512e87f89cfe247a880ddc..d319a0784d4b1d64fd8bbc5c55c84198d130fbb9 100644
--- a/lib/compiler/implementation/lib/core_patch.dart
+++ b/lib/compiler/implementation/lib/core_patch.dart
@@ -15,7 +15,7 @@ patch void print(var object) {
// Patch for Object implementation.
patch class Object {
- patch int hashCode() => Primitives.objectHashCode(this);
+ patch int get hashCode => Primitives.objectHashCode(this);
patch String toString() => Primitives.objectToString(this);

Powered by Google App Engine
This is Rietveld 408576698