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

Unified Diff: tests/language/null_bottom_test.dart

Issue 2879153005: Add support to dart2js for option --enable-asserts. (Closed)
Patch Set: Added !$checked to section predicate in co19 status file Created 3 years, 5 months 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/language_dart2js.status ('k') | tests/language/type_error_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/null_bottom_test.dart
diff --git a/tests/language/null_bottom_test.dart b/tests/language/null_bottom_test.dart
index f1288b741f29f35ea5a70d8720971c027168eadb..35105cdd37be24f5e3166087e7b8309cdf29d780 100644
--- a/tests/language/null_bottom_test.dart
+++ b/tests/language/null_bottom_test.dart
@@ -7,12 +7,6 @@ import "package:expect/expect.dart";
// Test that `Null` acts like the bottom type - less than any other type.
-bool isCheckedMode = () {
- bool c = false;
- assert(c = true);
- return c;
-}();
-
typedef R Fun<A, R>(A argument);
class C<T> {
@@ -57,7 +51,7 @@ void testClassTypes() {
var co = new C<Object>();
Expect.isFalse(co is C<Null>);
- if (!isCheckedMode) return;
+ if (!typeAssertionsEnabled) return;
List<int> li1 = const <Null>[];
« no previous file with comments | « tests/language/language_dart2js.status ('k') | tests/language/type_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698