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

Unified Diff: sdk/lib/collection/set.dart

Issue 1937103002: Make dart:collection strong-mode clean. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rebase Created 4 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: sdk/lib/collection/set.dart
diff --git a/sdk/lib/collection/set.dart b/sdk/lib/collection/set.dart
index 4dd32cbf1368d19a7264c9decc85c52370312fd1..499225dca2b1f9fa40493e9091ca2571e671c4e1 100644
--- a/sdk/lib/collection/set.dart
+++ b/sdk/lib/collection/set.dart
@@ -33,7 +33,7 @@ abstract class SetMixin<E> implements Set<E> {
bool contains(Object element);
- E lookup(E element);
+ E lookup(Object element);
bool remove(Object element);
@@ -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();
}

Powered by Google App Engine
This is Rietveld 408576698