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

Unified Diff: pkg/collection/lib/wrappers.dart

Issue 288103003: Change Set.toSet to always return a set with the same behavior. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update html5lib pubspec version to 0.12.0-dev Created 6 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 | « no previous file | pkg/collection/pubspec.yaml » ('j') | pkg/third_party/html5lib/pubspec.yaml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/collection/lib/wrappers.dart
diff --git a/pkg/collection/lib/wrappers.dart b/pkg/collection/lib/wrappers.dart
index c9e919d5c24c5d5a2b29a4135e7241cd8198990a..2034174259151097f59ab8bb6bd23e27661be4ff 100644
--- a/pkg/collection/lib/wrappers.dart
+++ b/pkg/collection/lib/wrappers.dart
@@ -254,6 +254,8 @@ class DelegatingSet<E> extends DelegatingIterable<E> implements Set<E> {
}
Set<E> union(Set<E> other) => _setBase.union(other);
+
+ Set<E> toSet() => new DelegatingSet<E>(_setBase.toSet());
}
/**
« no previous file with comments | « no previous file | pkg/collection/pubspec.yaml » ('j') | pkg/third_party/html5lib/pubspec.yaml » ('J')

Powered by Google App Engine
This is Rietveld 408576698