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

Unified Diff: sdk/lib/collection/hash_set.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
Index: sdk/lib/collection/hash_set.dart
diff --git a/sdk/lib/collection/hash_set.dart b/sdk/lib/collection/hash_set.dart
index 3ecb82c708e9a252b12eb768d0b118aae1ec9d3c..668ad0fb12860bc50500f0e2bdae702ffcb8c6d2 100644
--- a/sdk/lib/collection/hash_set.dart
+++ b/sdk/lib/collection/hash_set.dart
@@ -121,7 +121,7 @@ abstract class HashSet<E> implements Set<E> {
*/
factory HashSet.from(Iterable elements) {
HashSet<E> result = new HashSet<E>();
- for (E e in elements) result.add(e);
+ for (final e in elements) result.add(e as E);
return result;
}

Powered by Google App Engine
This is Rietveld 408576698