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

Unified Diff: tool/input_sdk/lib/collection/hash_map.dart

Issue 1977003002: Update dart:collection. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 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 | « test/codegen/lib/collection/linked_list_test.dart ('k') | tool/input_sdk/lib/collection/hash_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/collection/hash_map.dart
diff --git a/tool/input_sdk/lib/collection/hash_map.dart b/tool/input_sdk/lib/collection/hash_map.dart
index dacf929e0ac2e9687b3e8e60f0961e6b7e24faad..c8c31c529f90aba6c1aebf548f202209faa13678 100644
--- a/tool/input_sdk/lib/collection/hash_map.dart
+++ b/tool/input_sdk/lib/collection/hash_map.dart
@@ -102,7 +102,7 @@ abstract class HashMap<K, V> implements Map<K, V> {
*/
factory HashMap.from(Map other) {
HashMap<K, V> result = new HashMap<K, V>();
- other.forEach((k, v) { result[k as K] = v as V; });
+ other.forEach((k, v) { result[k as Object/*=K*/] = v as Object/*=V*/; });
return result;
}
« no previous file with comments | « test/codegen/lib/collection/linked_list_test.dart ('k') | tool/input_sdk/lib/collection/hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698