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

Unified Diff: tests/language/function_type_alias_test.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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
« no previous file with comments | « tests/language/function_syntax_test.dart ('k') | tests/language/if_and_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « tests/language/function_syntax_test.dart ('k') | tests/language/if_and_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698