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

Unified Diff: tests/language/ct_const2_test.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 80chars. 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
Index: tests/language/ct_const2_test.dart
diff --git a/tests/language/ct_const2_test.dart b/tests/language/ct_const2_test.dart
index 3e3f017b5f972ba9258f329fe2aaff5f668517bd..330fe3d97b2d2220ebfd09f893fac290ee9c507e 100644
--- a/tests/language/ct_const2_test.dart
+++ b/tests/language/ct_const2_test.dart
@@ -68,8 +68,8 @@ const BOP6 = BOOL_LIT && true;
const BOP7 = false || BOOL_LIT;
const BOP8 = STRING_LIT == "World!";
const BOP9 = "Hello" != STRING_LIT;
-const BOP10 = INT_LIT === INT_LIT_REF;
-const BOP11 = BOOL_LIT !== true;
+const BOP10 = INT_LIT == INT_LIT_REF;
Lasse Reichstein Nielsen 2012/11/12 13:10:41 Use identical here too. It is a compile-time const
floitsch 2012/11/12 22:18:43 identical doesn't yet work on compile-time constan
+const BOP11 = BOOL_LIT != true;
// Multiple binary expressions
const BOP20 = 1 * INT_LIT / 3 + INT_LIT + 9;

Powered by Google App Engine
This is Rietveld 408576698