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

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

Issue 997143003: Fix for conditional expressions (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Add test case Created 5 years, 9 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/codegen/expect/dart/core.js ('k') | test/dart_codegen/expect/convert/html_escape.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 2e9414d361b0f1c17aa2e1d2569ea5ab565dad4c..34bc5c4b346ee55eeb8ba8d1f57179ee2adff102 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 [](int key) => ((__x22) => DEVC$RT.cast(__x22, dynamic, E, "CastGeneral", """line 251, column 29 of dart:_internal/list.dart: """, __x22 is E, false))(containsKey(key) ? _values[key] : null);
+ E operator [](int 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);
« no previous file with comments | « test/codegen/expect/dart/core.js ('k') | test/dart_codegen/expect/convert/html_escape.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698