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

Unified Diff: runtime/lib/growable_array.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 | « runtime/lib/collection_patch.dart ('k') | runtime/lib/immutable_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index 6dfb6f6560163db400267b4b67718b8bd40c7742..d58492e9a7ad69c608550593581e242bc25588b3 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -212,11 +212,11 @@ class _GrowableObjectArray<T> implements List<T> {
throw new StateError("More than one element");
}
- int indexOf(T element, [int start = 0]) {
+ int indexOf(Object element, [int start = 0]) {
return IterableMixinWorkaround.indexOfList(this, element, start);
}
- int lastIndexOf(T element, [int start = null]) {
+ int lastIndexOf(Object element, [int start = null]) {
return IterableMixinWorkaround.lastIndexOfList(this, element, start);
}
@@ -230,7 +230,7 @@ class _GrowableObjectArray<T> implements List<T> {
// Collection interface.
- bool contains(T element) {
+ bool contains(Object element) {
return IterableMixinWorkaround.contains(this, element);
}
« no previous file with comments | « runtime/lib/collection_patch.dart ('k') | runtime/lib/immutable_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698