anchor.diff:      NestedJs(constructorArg: dartStaticMethod);
     });
     Expect.throws(() {
  -    NestedJs(constructorArg: localNonNullLegacy);
  +    NestedJs(constructorArg: localNonNullLegacy as String Function());
     });
     Expect.throws(() {
       NestedJs(constructorArg: localNonNull);
     });
     Expect.throws(() {
  -    NestedJs(constructorArg: localNullableLegacy);
  -  });
  -  Expect.throws(() {
  -    NestedJs(constructorArg: localNullable);
  +    NestedJs(constructorArg: localNullableLegacy as String Function());
  +  });
  +  Expect.throws(() {
  +    NestedJs(constructorArg: localNullable!);
     });
     NestedJs(constructorArg: allowInterop(() => 'hello'));
     NestedJs(constructorArg: wrappedDartStaticMethod);
  
positive.code:     someClass.jsFunctionFieldSetter = dartStaticMethod;
    }));
    Expect.throws((() {
      someClass.jsFunctionFieldSetter = localNonNullLegacy;
    }));
    Expect.throws((() {
      someClass.jsFunctionFieldSetter = localNonNull;
    }));
    Expect.throws((() {
      someClass.jsFunctionFieldSetter = localNullableLegacy;
    }));
    Expect.throws((() {
      someClass.jsFunctionFieldSetter = localNullable;
    }));
    someClass.jsFunctionFieldSetter = allowInterop(() => 'hello');
    someClass.jsFunctionFieldSetter = wrappedDartStaticMethod;
  
negative.code:     method(localNonNull);
    });
    Expect.throws(() {
      method(localNullableLegacy!);
    });
    Expect.throws(() {
      method(localNullable!);
    });
    method(allowInterop(() => 'hello'));
    method(wrappedDartStaticMethod);
  