Index: tests/compiler/dart2js/type_combination_test.dart |
diff --git a/tests/compiler/dart2js/type_combination_test.dart b/tests/compiler/dart2js/type_combination_test.dart |
index 586976321212e9d59bcd4f47e07eac83bf3939cd..b5b0c401d8ae0fc6db11ed0fbc7b9b36e3b26266 100644 |
--- a/tests/compiler/dart2js/type_combination_test.dart |
+++ b/tests/compiler/dart2js/type_combination_test.dart |
@@ -54,8 +54,10 @@ class Pair { |
final second; |
Pair(this.first, this.second); |
int get hashCode => first.hashCode * 47 + second.hashCode; |
- bool operator ==(Pair other) => |
- identical(first, other.first) && identical(second, other.second); |
+ bool operator ==(other) => |
+ other is Pair && |
+ identical(first, other.first) && |
+ identical(second, other.second); |
} |
class RuleSet { |