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

Unified Diff: tests/corelib_strong/list_insert_all_test.dart

Issue 2989993002: fix unsound cast failures in tests (Closed)
Patch Set: fix Created 3 years, 5 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 | « tests/corelib_strong/iterable_join_test.dart ('k') | tests/corelib_strong/sort_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_strong/list_insert_all_test.dart
diff --git a/tests/corelib_strong/list_insert_all_test.dart b/tests/corelib_strong/list_insert_all_test.dart
index c713966a970fe34099b85d578b1711e4a8da912c..ab14040eef218655582081da2f3e80758996906b 100644
--- a/tests/corelib_strong/list_insert_all_test.dart
+++ b/tests/corelib_strong/list_insert_all_test.dart
@@ -5,7 +5,7 @@
import "package:expect/expect.dart";
import "dart:collection";
-test(List list, int index, Iterable iterable) {
+test(List<int> list, int index, Iterable<int> iterable) {
List copy = list.toList();
list.insertAll(index, iterable);
List iterableList = iterable.toList();
@@ -21,8 +21,8 @@ test(List list, int index, Iterable iterable) {
}
}
-class MyList extends ListBase {
- List list;
+class MyList<T> extends ListBase<T> {
+ List<T> list;
MyList(this.list);
get length => list.length;
set length(value) {
« no previous file with comments | « tests/corelib_strong/iterable_join_test.dart ('k') | tests/corelib_strong/sort_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698