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

Unified Diff: sdk/lib/internal/list.dart

Issue 1160423002: Fix signature of UnmodifiableListMixin.insert to match List.insert. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/internal/list.dart
diff --git a/sdk/lib/internal/list.dart b/sdk/lib/internal/list.dart
index e642fb77e34eb0361c98edd4ee7dae006b05c450..ed5c987dd46e49a45901d5bfdccb73c70deaa7e0 100644
--- a/sdk/lib/internal/list.dart
+++ b/sdk/lib/internal/list.dart
@@ -123,7 +123,7 @@ abstract class UnmodifiableListMixin<E> implements List<E> {
}
/** This operation is not supported by an unmodifiable list. */
- E insert(int index, E value) {
+ void insert(int index, E element) {
throw new UnsupportedError(
"Cannot add to an unmodifiable list");
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698