Fix corelib/type_tostring_test.dart

Change-Id: I6eb9c6ca54bb4f00bfd1011d10f291ea5f672972
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195508
Commit-Queue: Erik Ernst <eernst@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
diff --git a/tests/corelib/type_tostring_test.dart b/tests/corelib/type_tostring_test.dart
index 8e1c2d1..8f2fa68 100644
--- a/tests/corelib/type_tostring_test.dart
+++ b/tests/corelib/type_tostring_test.dart
@@ -128,7 +128,6 @@
 typedef G4 = S Function<T>(S, T) Function<S>(S);
 typedef G5 = S Function<S, T>(S, T);
 
-typedef Weird = Function Function<Function>(
-    Function Function<Function>(Function));
+typedef Weird = X Function<X>(X Function<X>(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 8e1c2d1..8f2fa68 100644
--- a/tests/corelib_2/type_tostring_test.dart
+++ b/tests/corelib_2/type_tostring_test.dart
@@ -128,7 +128,6 @@
 typedef G4 = S Function<T>(S, T) Function<S>(S);
 typedef G5 = S Function<S, T>(S, T);
 
-typedef Weird = Function Function<Function>(
-    Function Function<Function>(Function));
+typedef Weird = X Function<X>(X Function<X>(X));
 
 RegExp re(String source) => RegExp(source);