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

Unified Diff: test/generated_sdk/lib/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/generated_sdk/lib/collection/set.dart
diff --git a/test/generated_sdk/lib/collection/set.dart b/test/generated_sdk/lib/collection/set.dart
index 4eb330606edef3c57519600671ce1ff33226d38b..717089e0b9e7357f8db4068c5b282c0414927c7e 100644
--- a/test/generated_sdk/lib/collection/set.dart
+++ b/test/generated_sdk/lib/collection/set.dart
@@ -125,7 +125,7 @@ abstract class SetMixin<E> implements Set<E> {
E get single {
if (length > 1) throw IterableElementError.tooMany();
- Iterator it = iterator;
+ Iterator<E> it = iterator;
if (!it.moveNext()) throw IterableElementError.noElement();
E result = it.current;
return result;
@@ -213,7 +213,7 @@ abstract class SetMixin<E> implements Set<E> {
}
E get first {
- Iterator it = iterator;
+ Iterator<E> it = iterator;
if (!it.moveNext()) {
throw IterableElementError.noElement();
}
@@ -221,7 +221,7 @@ abstract class SetMixin<E> implements Set<E> {
}
E get last {
- Iterator it = iterator;
+ Iterator<E> it = iterator;
if (!it.moveNext()) {
throw IterableElementError.noElement();
}
« no previous file with comments | « test/generated_sdk/lib/collection/linked_hash_set.dart ('k') | test/generated_sdk/lib/collection/splay_tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698