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

Unified Diff: sdk/lib/_collection_dev/list.dart

Issue 14246008: Allow Object when doing lookups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot to upload before committing Created 7 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 | « sdk/lib/_collection_dev/iterable.dart ('k') | sdk/lib/_internal/lib/collection_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_collection_dev/list.dart
diff --git a/sdk/lib/_collection_dev/list.dart b/sdk/lib/_collection_dev/list.dart
index 90a1d1643f200a62bb4ead6893c883ae5a02fd6a..7f894bb65fb748a262b913c8d3e6b1734f4d125d 100644
--- a/sdk/lib/_collection_dev/list.dart
+++ b/sdk/lib/_collection_dev/list.dart
@@ -35,7 +35,7 @@ abstract class FixedLengthListMixin<E> {
"Cannot add to a fixed-length list");
}
- bool remove(E element) {
+ bool remove(Object element) {
throw new UnsupportedError(
"Cannot remove from a fixed-length list");
}
@@ -130,7 +130,7 @@ abstract class UnmodifiableListMixin<E> {
"Cannot add to an unmodifiable list");
}
- bool remove(E element) {
+ bool remove(Object element) {
throw new UnsupportedError(
"Cannot remove from an unmodifiable list");
}
@@ -239,7 +239,7 @@ class ListMapView<E> implements Map<int, E> {
bool get isEmpty => _values.isEmpty;
bool get isNotEmpty => _values.isNotEmpty;
- bool containsValue(E value) => _values.contains(value);
+ bool containsValue(Object value) => _values.contains(value);
bool containsKey(int key) => key is int && key >= 0 && key < length;
void forEach(void f(int key, E value)) {
« no previous file with comments | « sdk/lib/_collection_dev/iterable.dart ('k') | sdk/lib/_internal/lib/collection_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698