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

Unified Diff: test/dart_codegen/expect/collection/linked_list.dart

Issue 1010893004: Allow S->T <: dynamic->T (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase and address comments 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/dart_codegen/expect/c/c.dart ('k') | test/dart_codegen/expect/collection/list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/collection/linked_list.dart
diff --git a/test/dart_codegen/expect/collection/linked_list.dart b/test/dart_codegen/expect/collection/linked_list.dart
index f77026ddb90d63c1f5a1d12cd62db81ea7564e15..b89245be42b5a862e6604eccefa908df2889cac8 100644
--- a/test/dart_codegen/expect/collection/linked_list.dart
+++ b/test/dart_codegen/expect/collection/linked_list.dart
@@ -13,7 +13,13 @@ part of dart.collection;
_insertAfter(_previous, entry);
}
void addAll(Iterable<E> entries) {
- entries.forEach((entry) => _insertAfter(_previous, DEVC$RT.cast(entry, dynamic, E, "CastGeneral", """line 65, column 56 of dart:collection/linked_list.dart: """, entry is E, false)));
+ entries.forEach(((__x10) => DEVC$RT.wrap((void f(dynamic __u5)) {
+ void c(dynamic x0) => f(x0);
+ return f == null ? null : c;
+ }
+ , __x10, __t8, DEVC$RT.type((__t6<E> _) {
+ }
+ ), "WrapLiteral", """line 65, column 21 of dart:collection/linked_list.dart: """, __x10 is __t6<E>))((entry) => _insertAfter(_previous, DEVC$RT.cast(entry, dynamic, E, "CastGeneral", """line 65, column 56 of dart:collection/linked_list.dart: """, entry is E, false))));
}
bool remove(E entry) {
if (entry._list != this) return false;
@@ -133,3 +139,5 @@ _list._insertAfter(this, entry);
_list._insertAfter(_previous, entry);
}
}
+ typedef void __t6<E>(E __u7);
+ typedef void __t8(dynamic __u9);
« no previous file with comments | « test/dart_codegen/expect/c/c.dart ('k') | test/dart_codegen/expect/collection/list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698