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

Unified Diff: utils/pub/version.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: utils/pub/version.dart
diff --git a/utils/pub/version.dart b/utils/pub/version.dart
index 98fcf72e4e63565f2d81b87388223e8e96c3aa98..a7b6b3a575d015dcca5b8e3f1f78c1a0d042cc77 100644
--- a/utils/pub/version.dart
+++ b/utils/pub/version.dart
@@ -126,7 +126,7 @@ class Version implements Comparable, VersionConstraint {
return 0;
}
- int hashCode() => toString().hashCode();
+ int get hashCode => toString().hashCode;
String toString() {
var buffer = new StringBuffer();

Powered by Google App Engine
This is Rietveld 408576698