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

Unified Diff: tests/language/first_class_types_literals_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/first_class_types_literals_test.dart
diff --git a/tests/language/first_class_types_literals_test.dart b/tests/language/first_class_types_literals_test.dart
index 9e8093f4d482d230dac875d4d06f074c57072cc1..4e3a2cad302f6619676225fa8af7ed2c506dd104 100644
--- a/tests/language/first_class_types_literals_test.dart
+++ b/tests/language/first_class_types_literals_test.dart
@@ -15,13 +15,13 @@ sameType(a, b) {
differentType(a, b) {
print("a: ${a.runtimeType}");
print("b: ${b.runtimeType}");
- Expect.isFalse(a.runtimeType === b.runtimeType);
+ Expect.isFalse(identical(a.runtimeType, b.runtimeType));
Lasse Reichstein Nielsen 2012/11/12 13:10:41 is differentType called at all?
floitsch 2012/11/12 22:18:43 No. removed.
}
main() {
// Test type literals.
Expect.identical(int, int);
- Expect.isFalse(int === num);
+ Expect.isFalse(identical(int, num));
Expect.identical(Foo, Foo);
// Test that class literals return instances of Type.

Powered by Google App Engine
This is Rietveld 408576698