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

Unified Diff: test/dart_codegen/expect/_internal/list.dart

Issue 1160673003: fixes #202, check IndexExpression (Closed) Base URL: git@github.com:dart-lang/dev_compiler.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 | « test/checker/checker_test.dart ('k') | test/dart_codegen/expect/collection/hash_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 754871d1e0f826ae1e91abed65eb970d91233437..4949357fd74f30b5bad29bbbb243bcd3d25b5368 100644
--- a/test/dart_codegen/expect/_internal/list.dart
+++ b/test/dart_codegen/expect/_internal/list.dart
@@ -109,7 +109,7 @@ RangeError.checkValidIndex(index, this);
}
class ListMapView<E> implements Map<int, E> {List<E> _values;
ListMapView(this._values);
- E operator [](Object key) => containsKey(key) ? _values[key] : null;
+ E operator [](Object key) => containsKey(key) ? _values[DEVC$RT.cast(key, Object, int, "ImplicitCast", """line 251, column 59 of dart:_internal/list.dart: """, key is int, true)] : null;
int get length => _values.length;
Iterable<E> get values => new SubListIterable<E>(_values, 0, null);
Iterable<int> get keys => new _ListIndicesIterable(_values);
« no previous file with comments | « test/checker/checker_test.dart ('k') | test/dart_codegen/expect/collection/hash_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698