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

Unified Diff: tests/language/canonical_const2_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/bool_test.dart ('k') | tests/language/canonical_const_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/canonical_const2_test.dart
diff --git a/tests/language/canonical_const2_test.dart b/tests/language/canonical_const2_test.dart
index 02fb11e215b4ea3cc862c35f43dd4d506abb622c..3508885b0ff68329b677ae965cdb7c129f6ab32a 100644
--- a/tests/language/canonical_const2_test.dart
+++ b/tests/language/canonical_const2_test.dart
@@ -5,5 +5,5 @@
// Check that compile-time constants are correctly canonicalized.
main() {
- Expect.isTrue(const <num>[1,2] !== const <num>[1.0,2.0]);
+ Expect.isFalse(identical(const <num>[1,2], const <num>[1.0,2.0]));
}
« no previous file with comments | « tests/language/bool_test.dart ('k') | tests/language/canonical_const_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698