Index: sdk/lib/html/templates/immutable_list_mixin.darttemplate |
diff --git a/sdk/lib/html/templates/immutable_list_mixin.darttemplate b/sdk/lib/html/templates/immutable_list_mixin.darttemplate |
index aab7f0bf025ddd2a0e94207943c476db32542a43..0728c244148c98a1b610b8b82cff513d7975cf44 100644 |
--- a/sdk/lib/html/templates/immutable_list_mixin.darttemplate |
+++ b/sdk/lib/html/templates/immutable_list_mixin.darttemplate |
@@ -66,7 +66,7 @@ $else |
// contains() defined by IDL. |
$endif |
- void sort([Comparator compare = Comparable.compare]) { |
+ void sort([int compare($E a, $E b)]) { |
throw new UnsupportedError("Cannot sort immutable List."); |
} |