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

Unified Diff: lib/wrappers.dart

Issue 1353873002: Fix inconsistent APIs (Closed) Base URL: https://github.com/dart-lang/collection.git@master
Patch Set: Bump version Created 5 years, 3 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 | « lib/src/unmodifiable_wrappers.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/wrappers.dart
diff --git a/lib/wrappers.dart b/lib/wrappers.dart
index 34f812c25789f6828ee0e48ce8d362e29537442f..9f8b833887630ebcbc18fb40e9ff4bffb86388c4 100644
--- a/lib/wrappers.dart
+++ b/lib/wrappers.dart
@@ -234,7 +234,7 @@ class DelegatingSet<E> extends DelegatingIterable<E> implements Set<E> {
Set<E> intersection(Set<Object> other) => _setBase.intersection(other);
- E lookup(E element) => _setBase.lookup(element);
+ E lookup(Object element) => _setBase.lookup(element);
bool remove(Object value) => _setBase.remove(value);
@@ -518,7 +518,7 @@ class MapValueSet<K, V> extends _DelegatingIterableBase<V> implements Set<V> {
*/
Set<V> intersection(Set<Object> other) => where(other.contains).toSet();
- V lookup(V element) => _baseMap[_keyForValue(element)];
+ V lookup(Object element) => _baseMap[_keyForValue(element)];
bool remove(Object value) {
if (value != null && value is! V) return false;
« no previous file with comments | « lib/src/unmodifiable_wrappers.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698