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

Unified Diff: sdk/lib/collection/linked_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, 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
Index: sdk/lib/collection/linked_hash_set.dart
diff --git a/sdk/lib/collection/linked_hash_set.dart b/sdk/lib/collection/linked_hash_set.dart
index e087b5f630fcc16fbd30cd00a9c8034d8e464feb..3bc170ffa52c4111ac80165b2d1364c4a4582561 100644
--- a/sdk/lib/collection/linked_hash_set.dart
+++ b/sdk/lib/collection/linked_hash_set.dart
@@ -104,8 +104,9 @@ abstract class LinkedHashSet<E> implements HashSet<E> {
*/
factory LinkedHashSet.from(Iterable elements) {
LinkedHashSet<E> result = new LinkedHashSet<E>();
- for (final E element in elements) {
- result.add(element);
+ for (final element in elements) {
+ E e = element as Object/*=E*/;
+ result.add(e);
}
return result;
}

Powered by Google App Engine
This is Rietveld 408576698