| Index: tests/language/function_type/function_type0_test.dart
|
| diff --git a/tests/language/function_type/function_type0_test.dart b/tests/language/function_type/function_type0_test.dart
|
| index f982e5ecfacfdbe020c1ee35ecf94ac5124ee01c..2ef4f5f223900962dd3c7e15edb4ec766f50f2a5 100644
|
| --- a/tests/language/function_type/function_type0_test.dart
|
| +++ b/tests/language/function_type/function_type0_test.dart
|
| @@ -19,9 +19,15 @@ import 'package:expect/expect.dart';
|
| @AssumeDynamic()
|
| confuse(f) => f;
|
|
|
| -final bool inCheckedMode =
|
| - (() { bool result = false; assert(result = true); return result; })();
|
| -
|
| +final bool inCheckedMode = (() {
|
| + try {
|
| + var i = 42;
|
| + String s = i;
|
| + } on TypeError catch (e) {
|
| + return true;
|
| + }
|
| + return false;
|
| +})();
|
|
|
| typedef F0<T> = int Function(int x);
|
| typedef F1<T> = Function Function(List<T> x);
|
|
|