Chromium Code Reviews| 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); |
| } |