Index: sdk/lib/collection_dev/list.dart |
diff --git a/sdk/lib/collection_dev/list.dart b/sdk/lib/collection_dev/list.dart |
index 0f2604b44bce29b156f2ef8b384db157b23666bc..ba9407ed71130256a7cda87d27610e629d6cc527 100644 |
--- a/sdk/lib/collection_dev/list.dart |
+++ b/sdk/lib/collection_dev/list.dart |
@@ -106,6 +106,10 @@ abstract class ListBase<E> extends Collection<E> implements List<E> { |
} |
String toString() => ToString.collectionToString(this); |
+ |
+ List<E> get reversed { |
+ return new ReversedListView(this, 0, null); |
+ } |
} |
/** |
@@ -114,8 +118,6 @@ abstract class ListBase<E> extends Collection<E> implements List<E> { |
abstract class FixedLengthListBase<E> extends ListBase<E> { |
void operator[]=(int index, E value); |
- List<E> get reversed => new ReversedListView<E>(this, 0, null); |
- |
void sort([Comparator<E> compare]) { |
Sort.sort(this, compare); |
} |
@@ -531,7 +533,7 @@ class ReverseListIterator<E> implements Iterator<E> { |
bool moveNext() { |
if (_list.length != _originalLength) { |
- throw new ConcurrentModificationError(list); |
+ throw new ConcurrentModificationError(_list); |
} |
if (_index <= _start) return false; |
_index -= 1; |