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

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

Issue 1122313002: Typing fixes to eliminate casts/dcalls (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase 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
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 fce67582bc0ce7567c1cb011abd25057a0c0240a..36a6eeb54f717bc2f72071a8a65c086ee6adce1c 100644
--- a/test/dart_codegen/expect/collection/set.dart
+++ b/test/dart_codegen/expect/collection/set.dart
@@ -72,9 +72,9 @@ part of dart.collection;
Iterable map(f(E element)) => new EfficientLengthMappedIterable<E, dynamic>(this, f);
E get single {
if (length > 1) throw IterableElementError.tooMany();
- Iterator it = iterator;
+ Iterator<E> it = iterator;
if (!it.moveNext()) throw IterableElementError.noElement();
- E result = DEVC$RT.cast(it.current, dynamic, E, "CompositeCast", """line 130, column 16 of dart:collection/set.dart: """, it.current is E, false);
+ E result = it.current;
return result;
}
String toString() => IterableBase.iterableToFullString(this, '{', '}');
@@ -142,20 +142,20 @@ part of dart.collection;
return new SkipWhileIterable<E>(this, test);
}
E get first {
- Iterator it = iterator;
+ Iterator<E> it = iterator;
if (!it.moveNext()) {
throw IterableElementError.noElement();
}
- return DEVC$RT.cast(it.current, dynamic, E, "CompositeCast", """line 220, column 12 of dart:collection/set.dart: """, it.current is E, false);
+ return it.current;
}
E get last {
- Iterator it = iterator;
+ Iterator<E> it = iterator;
if (!it.moveNext()) {
throw IterableElementError.noElement();
}
E result;
do {
- result = DEVC$RT.cast(it.current, dynamic, E, "CompositeCast", """line 230, column 16 of dart:collection/set.dart: """, it.current is E, false);
+ result = it.current;
}
while (it.moveNext()); return result;
}
« no previous file with comments | « test/dart_codegen/expect/collection/iterable.dart ('k') | test/dart_codegen/expect/collection/splay_tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698