| Index: tests/language/function_type/function_type24_test.dart
|
| diff --git a/tests/language/function_type/function_type24_test.dart b/tests/language/function_type/function_type24_test.dart
|
| index 7c69e0eeaae248ea036ba40c1e436b84fba8fda2..65e65593a50592edb6fea75482ab294e94813f5b 100644
|
| --- a/tests/language/function_type/function_type24_test.dart
|
| +++ b/tests/language/function_type/function_type24_test.dart
|
| @@ -19,60 +19,31 @@ import 'package:expect/expect.dart';
|
| @AssumeDynamic()
|
| confuse(f) => f;
|
|
|
| -final bool inCheckedMode = (() {
|
| - bool result = false;
|
| - assert(result = true);
|
| - return result;
|
| -})();
|
| -
|
| -typedef F0<T>
|
| - = int Function(int x0, [List<Function> x]);
|
| -typedef F1<T>
|
| - = List<Function> Function([Function x]);
|
| -typedef F2<T>
|
| - = List<T> Function(int x);
|
| -typedef F3<T>
|
| - = Function(List<T> x);
|
| -typedef F4<T>
|
| - = List<T> Function<A>(int x);
|
| -typedef F5<T>
|
| - = int Function(Function x0) Function();
|
| -typedef F6<T>
|
| - = int Function(int x, [core.List<core.int> x2]) Function();
|
| -typedef F7<T>
|
| - = Function Function(int x0, {int x}) Function();
|
| -typedef F8<T>
|
| - = Function Function([core.List<core.int> x]) Function();
|
| -typedef F9<T>
|
| - = List<Function> Function(int y, [int x]) Function();
|
| -typedef F10<T>
|
| - = List<Function> Function(int x1, [List<Function> x2]) Function();
|
| -typedef F11<T>
|
| - = List<Function> Function(int x0, {List<T> x}) Function();
|
| -typedef F12<T>
|
| - = core.List<core.int> Function(List<Function> x) Function();
|
| -typedef F13<T>
|
| - = core.List<core.int> Function(int y, [List<T> x]) Function();
|
| -typedef F14<T>
|
| - = List<T> Function([Function x1]) Function();
|
| -typedef F15<T>
|
| - = List<T> Function({core.List<core.int> x}) Function();
|
| -typedef F16<T>
|
| - = Function(int y, {int x}) Function();
|
| -typedef F17<T>
|
| - = Function(int x0, [core.List<core.int> x]) Function();
|
| -typedef F18<T>
|
| - = void Function(int x0) Function();
|
| -typedef F19<T>
|
| - = void Function(int x, [List<Function> x2]) Function();
|
| -typedef F20<T>
|
| - = void Function(int y, {List<T> x}) Function();
|
| -typedef F21<T>
|
| - = List<Function> Function<A>(List<A> x) Function();
|
| -typedef F22<T>
|
| - = A Function<A>(int x) Function();
|
| -typedef F23<T>
|
| - = List<Function> Function(B x) Function<B extends core.int>();
|
| +typedef F0<T> = int Function(int x0, [List<Function> x]);
|
| +typedef F1<T> = List<Function> Function([Function x]);
|
| +typedef F2<T> = List<T> Function(int x);
|
| +typedef F3<T> = Function(List<T> x);
|
| +typedef F4<T> = List<T> Function<A>(int x);
|
| +typedef F5<T> = int Function(Function x0) Function();
|
| +typedef F6<T> = int Function(int x, [core.List<core.int> x2]) Function();
|
| +typedef F7<T> = Function Function(int x0, {int x}) Function();
|
| +typedef F8<T> = Function Function([core.List<core.int> x]) Function();
|
| +typedef F9<T> = List<Function> Function(int y, [int x]) Function();
|
| +typedef F10<T> = List<Function> Function(int x1, [List<Function> x2])
|
| + Function();
|
| +typedef F11<T> = List<Function> Function(int x0, {List<T> x}) Function();
|
| +typedef F12<T> = core.List<core.int> Function(List<Function> x) Function();
|
| +typedef F13<T> = core.List<core.int> Function(int y, [List<T> x]) Function();
|
| +typedef F14<T> = List<T> Function([Function x1]) Function();
|
| +typedef F15<T> = List<T> Function({core.List<core.int> x}) Function();
|
| +typedef F16<T> = Function(int y, {int x}) Function();
|
| +typedef F17<T> = Function(int x0, [core.List<core.int> x]) Function();
|
| +typedef F18<T> = void Function(int x0) Function();
|
| +typedef F19<T> = void Function(int x, [List<Function> x2]) Function();
|
| +typedef F20<T> = void Function(int y, {List<T> x}) Function();
|
| +typedef F21<T> = List<Function> Function<A>(List<A> x) Function();
|
| +typedef F22<T> = A Function<A>(int x) Function();
|
| +typedef F23<T> = List<Function> Function(B x) Function<B extends core.int>();
|
|
|
| int f0(int x0, [List<Function> x]) => null;
|
| List<Function> f1([Function x]) => null;
|
| @@ -262,7 +233,7 @@ class U24<T> {
|
| Expect.equals(tIsDynamic, m2 is F2<bool>);
|
| Expect.equals(tIsDynamic, confuse(m2) is F2<bool>);
|
| } else {
|
| - if (inCheckedMode) {
|
| + if (typeAssertionsEnabled) {
|
| Expect.throws(() {
|
| x2 = (f2 as dynamic);
|
| });
|
| @@ -314,7 +285,7 @@ class U24<T> {
|
| Expect.equals(tIsDynamic, m3 is F3<bool>);
|
| Expect.equals(tIsDynamic, confuse(m3) is F3<bool>);
|
| } else {
|
| - if (inCheckedMode) {
|
| + if (typeAssertionsEnabled) {
|
| Expect.throws(() {
|
| x3 = (f3 as dynamic);
|
| });
|
| @@ -366,7 +337,7 @@ class U24<T> {
|
| Expect.equals(tIsDynamic, m4 is F4<bool>);
|
| Expect.equals(tIsDynamic, confuse(m4) is F4<bool>);
|
| } else {
|
| - if (inCheckedMode) {
|
| + if (typeAssertionsEnabled) {
|
| Expect.throws(() {
|
| x4 = (f4 as dynamic);
|
| });
|
| @@ -565,7 +536,7 @@ class U24<T> {
|
| Expect.equals(tIsDynamic, m11 is F11<bool>);
|
| Expect.equals(tIsDynamic, confuse(m11) is F11<bool>);
|
| } else {
|
| - if (inCheckedMode) {
|
| + if (typeAssertionsEnabled) {
|
| Expect.throws(() {
|
| x11 = (f11 as dynamic);
|
| });
|
| @@ -643,7 +614,7 @@ class U24<T> {
|
| Expect.equals(tIsDynamic, m13 is F13<bool>);
|
| Expect.equals(tIsDynamic, confuse(m13) is F13<bool>);
|
| } else {
|
| - if (inCheckedMode) {
|
| + if (typeAssertionsEnabled) {
|
| Expect.throws(() {
|
| x13 = (f13 as dynamic);
|
| });
|
| @@ -695,7 +666,7 @@ class U24<T> {
|
| Expect.equals(tIsDynamic, m14 is F14<bool>);
|
| Expect.equals(tIsDynamic, confuse(m14) is F14<bool>);
|
| } else {
|
| - if (inCheckedMode) {
|
| + if (typeAssertionsEnabled) {
|
| Expect.throws(() {
|
| x14 = (f14 as dynamic);
|
| });
|
| @@ -747,7 +718,7 @@ class U24<T> {
|
| Expect.equals(tIsDynamic, m15 is F15<bool>);
|
| Expect.equals(tIsDynamic, confuse(m15) is F15<bool>);
|
| } else {
|
| - if (inCheckedMode) {
|
| + if (typeAssertionsEnabled) {
|
| Expect.throws(() {
|
| x15 = (f15 as dynamic);
|
| });
|
| @@ -895,7 +866,7 @@ class U24<T> {
|
| Expect.equals(tIsDynamic, m20 is F20<bool>);
|
| Expect.equals(tIsDynamic, confuse(m20) is F20<bool>);
|
| } else {
|
| - if (inCheckedMode) {
|
| + if (typeAssertionsEnabled) {
|
| Expect.throws(() {
|
| x20 = (f20 as dynamic);
|
| });
|
|
|