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

Unified Diff: sdk/lib/_internal/lib/collection_patch.dart

Issue 59463004: Fix the generic type of Map.values for map literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file. Created 7 years, 1 month 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 | sdk/lib/_internal/lib/constant_map.dart » ('j') | tests/corelib/corelib.status » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/collection_patch.dart
diff --git a/sdk/lib/_internal/lib/collection_patch.dart b/sdk/lib/_internal/lib/collection_patch.dart
index e98bac663afff7b964e0016f3e9ff8b323ad2b58..feb40e62a295e960134543b90f3fc51e2f5b8a5f 100644
--- a/sdk/lib/_internal/lib/collection_patch.dart
+++ b/sdk/lib/_internal/lib/collection_patch.dart
@@ -71,7 +71,7 @@ class _HashMap<K, V> implements HashMap<K, V> {
}
Iterable<V> get values {
- return keys.map((each) => this[each]);
+ return new MappedIterable<K, V>(keys, (each) => this[each]);
}
bool containsKey(Object key) {
@@ -527,7 +527,7 @@ class _LinkedHashMap<K, V> implements LinkedHashMap<K, V> {
}
Iterable<V> get values {
- return keys.map((each) => this[each]);
+ return new MappedIterable<K, V>(keys, (each) => this[each]);
}
bool containsKey(Object key) {
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/constant_map.dart » ('j') | tests/corelib/corelib.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698