Index: tests/language/type_error_test.dart |
diff --git a/tests/language/type_error_test.dart b/tests/language/type_error_test.dart |
index 60784dc9bc65f74ab4464eeedf061394b083825f..c1eca890e66dc2073fe527a54fbcf748553e800a 100644 |
--- a/tests/language/type_error_test.dart |
+++ b/tests/language/type_error_test.dart |
@@ -121,7 +121,7 @@ class ListCastError { |
/// Defeat optimizations of type checks. |
wrap(e) { |
- if (new Date.now().year == 1980) return null; |
+ if (new DateTime.now().year == 1980) return null; |
return e; |
} |