Additional fix for #476. Make function type arguments nullable
diff --git a/Utils/expect_common.dart b/Utils/expect_common.dart
index d18a169..ecae6ea 100644
--- a/Utils/expect_common.dart
+++ b/Utils/expect_common.dart
@@ -218,7 +218,7 @@
    *     Expect.throws(myThrowingFunction, (e) => e is MyException);
    */
   static void throws(void f(),
-      [_CheckExceptionFn check = null, String? reason = null]) {
+      [_CheckExceptionFn? check = null, String? reason = null]) {
     if (!(f is Function)) {
       String msg = reason == null ? "" : reason;
       _fail(
diff --git a/Utils/lang_feature_check.dart b/Utils/lang_feature_check.dart
index 023e3b8..8c6f67c 100644
--- a/Utils/lang_feature_check.dart
+++ b/Utils/lang_feature_check.dart
@@ -5,5 +5,5 @@
 typedef expected_target=Function<X>();
 
 // Functions for correct type comparison in language feature tests
-F<X> toF<X>(X x) => null;
+F<X>? toF<X>(X x) => null;
 Type typeOf<X>() => X;