Chromium Code Reviews| 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. |