Index: tests/corelib/splay_tree_from_iterable_test.dart |
diff --git a/tests/corelib/splay_tree_from_iterable_test.dart b/tests/corelib/splay_tree_from_iterable_test.dart |
index c60293a1eed5a7bd9a33d3d124b0eec40cc59b92..5db4c1b9a36d73687cfacfc2ec0e4e135ff3d874 100644 |
--- a/tests/corelib/splay_tree_from_iterable_test.dart |
+++ b/tests/corelib/splay_tree_from_iterable_test.dart |
@@ -121,9 +121,7 @@ void genericTypeTest() { |
// Test in checked mode with explicitly given types. |
void typedTest() { |
- bool isCheckedMode = false; |
- assert((isCheckedMode = true)); |
- if (!isCheckedMode) return; |
+ if (!typeAssertionsEnabled) return; |
// Assign functions to untyped function variables. |
Function key = (int v) => "$v"; |