Index: tests/language/function_type/test_generator.dart |
diff --git a/tests/language/function_type/test_generator.dart b/tests/language/function_type/test_generator.dart |
index dfdb8b39cca6765e5fb69c04e85a5b37fc562404..1a9360c1a1727e99caaeafb945485bd59cdfd853 100644 |
--- a/tests/language/function_type/test_generator.dart |
+++ b/tests/language/function_type/test_generator.dart |
@@ -541,9 +541,6 @@ import 'package:expect/expect.dart'; |
@NoInline() |
@AssumeDynamic() |
confuse(f) => f; |
- |
-final bool inCheckedMode = |
- (() { bool result = false; assert(result = true); return result; })(); |
"""; |
class Unit { |
@@ -642,7 +639,7 @@ final TYPEDEF_T_TESTS_TEMPLATE = """ |
Expect.equals(tIsDynamic, #methodFunName is #typeName<bool>); |
Expect.equals(tIsDynamic, confuse(#methodFunName) is #typeName<bool>); |
} else { |
- if (inCheckedMode) { |
+ if (typeAssertionsEnabled) { |
Expect.throws(() { #fieldName = (#staticFunName as dynamic); }); |
Expect.throws(() { #fieldName = confuse(#staticFunName); }); |
#typeCode #localName; |