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

Unified Diff: tools/dom/src/ImmutableListMixin.dart

Issue 331833003: Revert "Add "last" setter to List." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months 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
« no previous file with comments | « third_party/pkg/js/lib/src/wrapping/js/array_to_list_adapter.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/ImmutableListMixin.dart
diff --git a/tools/dom/src/ImmutableListMixin.dart b/tools/dom/src/ImmutableListMixin.dart
index 97fbdf2a8432fc40460475b00b0cac75dda4538f..ffdcc2c98ba31f3117a89fdec6b261fd1f6f9b44 100644
--- a/tools/dom/src/ImmutableListMixin.dart
+++ b/tools/dom/src/ImmutableListMixin.dart
@@ -13,11 +13,7 @@ abstract class ImmutableListMixin<E> implements List<E> {
return new FixedSizeListIterator<E>(this);
}
- // From List<E>:
- void set last(E value) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
+ // From Collection<E>:
void add(E value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
@@ -26,6 +22,7 @@ abstract class ImmutableListMixin<E> implements List<E> {
throw new UnsupportedError("Cannot add to immutable List.");
}
+ // From List<E>:
void sort([int compare(E a, E b)]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
« no previous file with comments | « third_party/pkg/js/lib/src/wrapping/js/array_to_list_adapter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698