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

Unified Diff: lib/src/wrappers.dart

Issue 2978383002: fix MapKeySet.lookup to be a valid override in strong mode (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/wrappers.dart
diff --git a/lib/src/wrappers.dart b/lib/src/wrappers.dart
index 1ff7dc162df882834d8392fd368638357468f865..555296d20b0687f624977d97ab4f09dc412f62a3 100644
--- a/lib/src/wrappers.dart
+++ b/lib/src/wrappers.dart
@@ -449,7 +449,7 @@ class MapKeySet<E> extends _DelegatingIterableBase<E>
/// Throws an [UnsupportedError] since there's no corresponding method for
/// [Map]s.
- E lookup(E element) =>
+ E lookup(Object element) =>
Jennifer Messerly 2017/07/19 23:47:36 after this change, this is now a valid implementat
throw new UnsupportedError("MapKeySet doesn't support lookup().");
/// Returns a new set which contains all the elements of [this] and [other].
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698