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

Unified Diff: test/dart_codegen/expect/_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/dart_codegen/expect/_internal/list.dart
diff --git a/test/dart_codegen/expect/_internal/list.dart b/test/dart_codegen/expect/_internal/list.dart
index 34bc5c4b346ee55eeb8ba8d1f57179ee2adff102..754871d1e0f826ae1e91abed65eb970d91233437 100644
--- a/test/dart_codegen/expect/_internal/list.dart
+++ b/test/dart_codegen/expect/_internal/list.dart
@@ -109,14 +109,14 @@ RangeError.checkValidIndex(index, this);
}
class ListMapView<E> implements Map<int, E> {List<E> _values;
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);
Iterable<int> get keys => new _ListIndicesIterable(_values);
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;
for (int i = 0; i < length; i++) {
@@ -132,7 +132,7 @@ throw new UnsupportedError("Cannot modify an unmodifiable map");
E putIfAbsent(int key, E ifAbsent()) {
throw new UnsupportedError("Cannot modify an unmodifiable map");
}
- E remove(int key) {
+ E remove(Object key) {
throw new UnsupportedError("Cannot modify an unmodifiable map");
}
void clear() {

Powered by Google App Engine
This is Rietveld 408576698