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

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

Issue 1887883006: Fix Set.from which still had a generic type on the incoming Iterable. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 | tests/corelib/set_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a4848f46693759f5d9c803d5e157d5b8d0c564ca..19d2fefcbdeb4224674ff7869b8b725b20c8c3f4 100644
--- a/sdk/lib/collection/linked_hash_set.dart
+++ b/sdk/lib/collection/linked_hash_set.dart
@@ -102,7 +102,7 @@ abstract class LinkedHashSet<E> implements HashSet<E> {
* Iterable<SuperType> tmp = superSet.where((e) => e is SubType);
* Set<SubType> subSet = new LinkedHashSet<SubType>.from(tmp);
*/
- factory LinkedHashSet.from(Iterable<E> elements) {
+ factory LinkedHashSet.from(Iterable elements) {
LinkedHashSet<E> result = new LinkedHashSet<E>();
for (final E element in elements) {
result.add(element);
« no previous file with comments | « no previous file | tests/corelib/set_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698