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

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

Issue 1024073003: Treat Object and dynamic similarly (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: 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/checker/checker_test.dart ('k') | test/dart_codegen/expect/convert/json.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/collection/set.dart
diff --git a/test/dart_codegen/expect/collection/set.dart b/test/dart_codegen/expect/collection/set.dart
index 10db77e23d9119a0120ebed1224cef64e5c60486..7d15c6dd16b98296384dccb136db1571ec06520b 100644
--- a/test/dart_codegen/expect/collection/set.dart
+++ b/test/dart_codegen/expect/collection/set.dart
@@ -29,22 +29,14 @@ part of dart.collection;
for (E element in this) {
if (test(element)) toRemove.add(element);
}
- removeAll(DEVC$RT.cast(toRemove, DEVC$RT.type((List<dynamic> _) {
- }
- ), DEVC$RT.type((Iterable<Object> _) {
- }
- ), "CastDynamic", """line 77, column 15 of dart:collection/set.dart: """, toRemove is Iterable<Object>, true));
+ removeAll(toRemove);
}
void retainWhere(bool test(E element)) {
List toRemove = [];
for (E element in this) {
if (!test(element)) toRemove.add(element);
}
- removeAll(DEVC$RT.cast(toRemove, DEVC$RT.type((List<dynamic> _) {
- }
- ), DEVC$RT.type((Iterable<Object> _) {
- }
- ), "CastDynamic", """line 85, column 15 of dart:collection/set.dart: """, toRemove is Iterable<Object>, true));
+ removeAll(toRemove);
}
bool containsAll(Iterable<Object> other) {
for (Object o in other) {
« no previous file with comments | « test/checker/checker_test.dart ('k') | test/dart_codegen/expect/convert/json.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698