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

Unified Diff: pkg/unmodifiable_collection/lib/unmodifiable_collection.dart

Issue 29463002: fix for Set.add tweak in r28863 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes for bool return value Created 7 years, 2 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 | « pkg/barback/test/utils.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unmodifiable_collection/lib/unmodifiable_collection.dart
diff --git a/pkg/unmodifiable_collection/lib/unmodifiable_collection.dart b/pkg/unmodifiable_collection/lib/unmodifiable_collection.dart
index fcb2dc65ba7bb843b8f2e282a2b124868d9cbfde..9fd35e8a4c6db9338dcc3189d3b81a13ff54c31d 100644
--- a/pkg/unmodifiable_collection/lib/unmodifiable_collection.dart
+++ b/pkg/unmodifiable_collection/lib/unmodifiable_collection.dart
@@ -84,7 +84,9 @@ class NonGrowableListView<E> extends _IterableView<E>
* Throws an [UnsupportedError];
* operations that change the length of the list are disallowed.
*/
- void add(E value) => _throw();
+ bool add(E value) {
+ _throw();
+ }
/**
* Throws an [UnsupportedError];
@@ -185,7 +187,9 @@ class UnmodifiableSetView<E> extends _IterableView<E>
* Throws an [UnsupportedError];
* operations that change the set are disallowed.
*/
- bool add(E value) => _throw();
+ bool add(E value) {
+ _throw();
+ }
/**
* Throws an [UnsupportedError];
« no previous file with comments | « pkg/barback/test/utils.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698