Chromium Code Reviews| Index: corelib/src/hashable.dart |
| =================================================================== |
| --- corelib/src/hashable.dart (revision 11241) |
| +++ corelib/src/hashable.dart (working copy) |
| @@ -4,6 +4,10 @@ |
| // Dart core library. |
| -interface Hashable { |
| - int hashCode(); |
| +abstract class Hashable { |
| + factory Hashable._uninstantiable() { |
| + throw const UnsupportedOperationException( |
| + "abstract class Hashable cannot be instantiated"); |
| + } |
| + abstract int hashCode(); |
| } |