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

Unified Diff: sdk/lib/html/templates/immutable_list_mixin.darttemplate

Issue 11269004: Change List.sort to not have a default parameter value. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to tup of tree. Created 8 years 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
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 5eef23849ac83a826a1b2f5c4507f04f4d3ae831..281d1a3ac240d162dfa94bdda18ae70a220b8c53 100644
--- a/sdk/lib/html/templates/immutable_list_mixin.darttemplate
+++ b/sdk/lib/html/templates/immutable_list_mixin.darttemplate
@@ -49,7 +49,7 @@ $endif
// From List<$E>:
- void sort([Comparator<$E> compare = Comparable.compare]) {
+ void sort([int compare($E a, $E b)]) {
throw new UnsupportedError("Cannot sort immutable List.");
}

Powered by Google App Engine
This is Rietveld 408576698