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

Unified Diff: runtime/lib/array.dart

Issue 14425003: Make List.remove return boolean. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | runtime/lib/growable_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index 1ebc5b7cfd826627c4453fda8089edc8b8910544..6e038881bc3c84926de4b35d1afdb483ce7e88ec 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -43,7 +43,7 @@ class _ObjectArray<E> implements List<E> {
"Cannot remove element of a non-extendable array");
}
- void remove(Object element) {
+ bool remove(Object element) {
throw new UnsupportedError(
"Cannot remove element of a non-extendable array");
}
@@ -310,7 +310,7 @@ class _ImmutableArray<E> implements List<E> {
"Cannot modify an immutable array");
}
- void remove(Object element) {
+ bool remove(Object element) {
throw new UnsupportedError(
"Cannot modify an immutable array");
}
« no previous file with comments | « no previous file | runtime/lib/growable_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698