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

Unified Diff: lib/compiler/implementation/lib/core_patch.dart

Issue 10956026: - Add definition of "int hashCode()" to Object. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/value_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/core_patch.dart
===================================================================
--- lib/compiler/implementation/lib/core_patch.dart (revision 12648)
+++ lib/compiler/implementation/lib/core_patch.dart (working copy)
@@ -16,6 +16,11 @@
// Patch for Object implementation.
patch class Object {
+ patch int hashCode() {
+ throw new RuntimeError("Unimplemented: Object.hashCode");
+ return -1;
ahe 2012/09/21 09:15:57 This is unreachable code. This will lead to a warn
Ivan Posva 2012/09/24 17:16:47 Thanks for the feedback. Next time I will not atte
ahe 2012/09/24 17:19:11 Or you can just use "throw", there no need to have
+ }
+
patch String toString() {
return Primitives.objectToString(this);
}
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/value_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698