Index: tests/language/function_type_alias_test.dart |
diff --git a/tests/language/function_type_alias_test.dart b/tests/language/function_type_alias_test.dart |
index aca24197aaa51af9a514fad43cac8ce3f964ea68..242b5bef7327c35d5d3fadab6e23a8cbb9d65038 100644 |
--- a/tests/language/function_type_alias_test.dart |
+++ b/tests/language/function_type_alias_test.dart |
@@ -68,7 +68,7 @@ class FunctionTypeAliasTest { |
Expect.isTrue(compareStrLenReverse is !CompareInt); |
Expect.isTrue(compareStrLenReverse is CompareString); |
- int compareObj(Object a, Object b) { return a === b ? 0 : -1; } |
+ int compareObj(Object a, Object b) { return identical(a, b) ? 0 : -1; } |
Expect.isTrue(compareObj is Fun); |
Expect.isTrue(compareObj is IntFun); |
Expect.isTrue(compareObj is !BoolFun); |