[kernel] In bin/type_check.dart allow arbitrary calls on values of type Function
[kernel] In bin/type_check.dart allow arbitrary calls on values of type Function

This change silences errors that were reported for Function.call callsites because
there is no valid interface target for them:

  Function f;
  f();
  f(null);
  f(null, null, 10);
  f<bool, int>(11, true);

All of these call sites are valid, so we have to simply treat them as dynamic 
invocations.

Bug: https://github.com/dart-lang/sdk/issues/31052
Change-Id: I13b5dc3ff69e7adede3040334556ff6653b50515
Reviewed-on: https://dart-review.googlesource.com/14524
Commit-Queue: Vyacheslav Egorov <72c81f38df725d8f1832acb9b5bb99563fc2f1b9@google.com>
Reviewed-by: Paul Berry <72d414e3a99fb120308437779d51667bcc0984eb@google.com>

dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk