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

Unified Diff: sdk/lib/collection/hash_map.dart

Issue 1937103002: Make dart:collection strong-mode clean. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase Created 4 years, 8 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 | sdk/lib/collection/hash_set.dart » ('j') | sdk/lib/collection/queue.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/collection/hash_map.dart
diff --git a/sdk/lib/collection/hash_map.dart b/sdk/lib/collection/hash_map.dart
index a5f31b6fff51a824ace97e11206e0f7f4640e7b6..dacf929e0ac2e9687b3e8e60f0961e6b7e24faad 100644
--- a/sdk/lib/collection/hash_map.dart
+++ b/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] = v; });
+ other.forEach((k, v) { result[k as K] = v as V; });
Lasse Reichstein Nielsen 2016/05/13 05:31:07 I saw some other code be changed to k as Object
Lasse Reichstein Nielsen 2016/05/13 06:57:52 That was an old comment I forgot to send at the ti
return result;
}
« no previous file with comments | « no previous file | sdk/lib/collection/hash_set.dart » ('j') | sdk/lib/collection/queue.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698