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

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: Fix type error. 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
Index: runtime/lib/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index 6dfb6f6560163db400267b4b67718b8bd40c7742..7e53156994e3ec0ea1fb1df2eb0493d108b8ec94 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -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);
}

Powered by Google App Engine
This is Rietveld 408576698