diff --git a/tests/corelib/type_tostring_test.dart b/tests/corelib/type_tostring_test.dart index 8e1c2d1c423..8f2fa68c533 100644 --- a/tests/corelib/type_tostring_test.dart +++ b/tests/corelib/type_tostring_test.dart @@ -128,7 +128,6 @@ typedef G3 = T Function(S Function(S, T)); typedef G4 = S Function(S, T) Function(S); typedef G5 = S Function(S, T); -typedef Weird = Function Function( - Function Function(Function)); +typedef Weird = X Function(X Function(X)); RegExp re(String source) => RegExp(source); diff --git a/tests/corelib_2/type_tostring_test.dart b/tests/corelib_2/type_tostring_test.dart index 8e1c2d1c423..8f2fa68c533 100644 --- a/tests/corelib_2/type_tostring_test.dart +++ b/tests/corelib_2/type_tostring_test.dart @@ -128,7 +128,6 @@ typedef G3 = T Function(S Function(S, T)); typedef G4 = S Function(S, T) Function(S); typedef G5 = S Function(S, T); -typedef Weird = Function Function( - Function Function(Function)); +typedef Weird = X Function(X Function(X)); RegExp re(String source) => RegExp(source);