Index: pkg/compiler/lib/src/deferred_load.dart |
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart |
index d233398127bc1fcc50a7ee289ba2a9f2067c53cd..c3c4d7acb3b91fff4d5eb6181820c105a62f12d5 100644 |
--- a/pkg/compiler/lib/src/deferred_load.dart |
+++ b/pkg/compiler/lib/src/deferred_load.dart |
@@ -70,8 +70,9 @@ class OutputUnit { |
String toString() => "OutputUnit($name)"; |
- bool operator ==(OutputUnit other) { |
- return imports.length == other.imports.length && |
+ bool operator ==(other) { |
+ return other is OutputUnit && |
+ imports.length == other.imports.length && |
imports.containsAll(other.imports); |
} |