Index: pkg/compiler/lib/src/util/setlet.dart |
diff --git a/pkg/compiler/lib/src/util/setlet.dart b/pkg/compiler/lib/src/util/setlet.dart |
index 408e46d4c9aa5a3b2d07f7418bf12a8b7090c01f..3d8da64d1a25f0fd368aa829a9cb49b469adb005 100644 |
--- a/pkg/compiler/lib/src/util/setlet.dart |
+++ b/pkg/compiler/lib/src/util/setlet.dart |
@@ -57,7 +57,7 @@ class Setlet<E> extends IterableBase<E> implements Set<E> { |
} |
} |
- bool contains(E element) { |
+ bool contains(Object element) { |
if (_extra == null) { |
return _contents == element; |
} else if (_MARKER == _extra) { |
@@ -232,7 +232,7 @@ class Setlet<E> extends IterableBase<E> implements Set<E> { |
} |
} |
- bool containsAll(Iterable<E> other) { |
+ bool containsAll(Iterable<Object> other) { |
for (E e in other) { |
if (!this.contains(e)) return false; |
} |
@@ -247,7 +247,7 @@ class Setlet<E> extends IterableBase<E> implements Set<E> { |
Set<E> union(Set<E> other) => new Set<E>.from(this)..addAll(other); |
- Setlet<E> intersection(Set<E> other) => |
+ Setlet<E> intersection(Set<Object> other) => |
new Setlet<E>.from(this.where((e) => other.contains(e))); |
Setlet<E> difference(Set<Object> other) => |