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

Unified Diff: lib/core/duration.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/core/duration.dart
diff --git a/lib/core/duration.dart b/lib/core/duration.dart
index aa3d4bec38dde6fd4baf78d33c65de29753e87ec..710d8772b8b570e945db4e5bdbb65e2c29ae4cb6 100644
--- a/lib/core/duration.dart
+++ b/lib/core/duration.dart
@@ -85,8 +85,8 @@ class Duration implements Comparable {
return inMilliseconds == other.inMilliseconds;
}
- int hashCode() {
- return inMilliseconds.hashCode();
+ int get hashCode {
+ return inMilliseconds.hashCode;
}
int compareTo(Duration other) {

Powered by Google App Engine
This is Rietveld 408576698