Chromium Code Reviews| Index: corelib/src/comparable.dart |
| =================================================================== |
| --- corelib/src/comparable.dart (revision 11241) |
| +++ corelib/src/comparable.dart (working copy) |
| @@ -4,6 +4,10 @@ |
| // Dart core library. |
| -interface Comparable { |
| - int compareTo(Comparable other); |
| +abstract class Comparable { |
| + factory Comparable._uninstantiable() { |
| + throw const UnsupportedOperationException( |
| + "abstract class Comparable cannot be instantiated"); |
| + } |
|
bakster
2012/08/24 06:32:50
I don't understand why this is needed. If the clas
hausner
2012/08/24 15:25:45
I checked this with Gilad of course. He says that
|
| + abstract int compareTo(Comparable other); |
| } |