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

Unified Diff: lib/src/canonicalized_map.dart

Issue 1133583002: Fix signatures of isValidKey arguments to CanonicalizedMap constructors. (Closed) Base URL: https://github.com/dart-lang/collection.git@master
Patch Set: Update version number. Created 5 years, 7 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/canonicalized_map.dart
diff --git a/lib/src/canonicalized_map.dart b/lib/src/canonicalized_map.dart
index f1cd85912a29d906fa9fc9af945dc6c0040401ed..7ee3f86c4c717ae4f7c38c72fdf789d19ee926ea 100644
--- a/lib/src/canonicalized_map.dart
+++ b/lib/src/canonicalized_map.dart
@@ -35,7 +35,7 @@ class CanonicalizedMap<C, K, V> implements Map<K, V> {
* methods that take arbitrary objects. It can be used to filter out keys that
* can't be canonicalized.
*/
- CanonicalizedMap(C canonicalize(K key), {bool isValidKey(K key)})
+ CanonicalizedMap(C canonicalize(K key), {bool isValidKey(Object key)})
: _canonicalize = canonicalize,
_isValidKeyFn = isValidKey;
@@ -51,7 +51,7 @@ class CanonicalizedMap<C, K, V> implements Map<K, V> {
* can't be canonicalized.
*/
CanonicalizedMap.from(Map<K, V> other, C canonicalize(K key),
- {bool isValidKey(K key)})
+ {bool isValidKey(Object key)})
: _canonicalize = canonicalize,
_isValidKeyFn = isValidKey {
addAll(other);
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698