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

Unified Diff: test/generated_sdk/lib/internal/list.dart

Issue 1112403004: SDK fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Formatting fix Created 5 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
Index: test/generated_sdk/lib/internal/list.dart
diff --git a/test/generated_sdk/lib/internal/list.dart b/test/generated_sdk/lib/internal/list.dart
index 890a7895327466e706267803793d7746ca8251af..a3e22f0d46ce310923ffac93b02efbbff94c73e5 100644
--- a/test/generated_sdk/lib/internal/list.dart
+++ b/test/generated_sdk/lib/internal/list.dart
@@ -248,7 +248,7 @@ class ListMapView<E> implements Map<int, E> {
ListMapView(this._values);
- E operator[] (int key) => containsKey(key) ? _values[key] : null;
+ E operator[] (Object key) => containsKey(key) ? _values[key] : null;
int get length => _values.length;
Iterable<E> get values => new SubListIterable<E>(_values, 0, null);
@@ -257,7 +257,7 @@ class ListMapView<E> implements Map<int, E> {
bool get isEmpty => _values.isEmpty;
bool get isNotEmpty => _values.isNotEmpty;
bool containsValue(Object value) => _values.contains(value);
- bool containsKey(int key) => key is int && key >= 0 && key < length;
+ bool containsKey(Object key) => key is int && key >= 0 && key < length;
void forEach(void f(int key, E value)) {
int length = _values.length;
@@ -280,7 +280,7 @@ class ListMapView<E> implements Map<int, E> {
}
/** This operation is not supported by an unmodifiable map. */
- E remove(int key) {
+ E remove(Object key) {
throw new UnsupportedError("Cannot modify an unmodifiable map");
}

Powered by Google App Engine
This is Rietveld 408576698