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

Unified Diff: tool/input_sdk/lib/collection/linked_hash_set.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 | « tool/input_sdk/lib/collection/linked_hash_map.dart ('k') | tool/input_sdk/lib/collection/linked_list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/collection/linked_hash_set.dart
diff --git a/tool/input_sdk/lib/collection/linked_hash_set.dart b/tool/input_sdk/lib/collection/linked_hash_set.dart
index 8826710ce745ccd9372c1131128f632280c61cd6..3bc170ffa52c4111ac80165b2d1364c4a4582561 100644
--- a/tool/input_sdk/lib/collection/linked_hash_set.dart
+++ b/tool/input_sdk/lib/collection/linked_hash_set.dart
@@ -105,7 +105,8 @@ abstract class LinkedHashSet<E> implements HashSet<E> {
factory LinkedHashSet.from(Iterable elements) {
LinkedHashSet<E> result = new LinkedHashSet<E>();
for (final element in elements) {
- result.add(element as E);
+ E e = element as Object/*=E*/;
+ result.add(e);
}
return result;
}
« no previous file with comments | « tool/input_sdk/lib/collection/linked_hash_map.dart ('k') | tool/input_sdk/lib/collection/linked_list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698