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

Unified Diff: runtime/lib/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/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index cfb640bc01c076d959d31a7d88458025a50cf313..5b87c35654fd851098d33ff69c6fffc150267dbf 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -118,7 +118,7 @@ class _ObjectArray<E> implements List<E> {
// Iterable interface.
- bool contains(E element) {
+ bool contains(Object element) {
return IterableMixinWorkaround.contains(this, element);
}
@@ -371,7 +371,7 @@ class _ImmutableArray<E> implements List<E> {
// Collection interface.
- bool contains(E element) {
+ bool contains(Object element) {
return IterableMixinWorkaround.contains(this, element);
}

Powered by Google App Engine
This is Rietveld 408576698