TypeScript Version: nightly (2.2.0-dev.20161121)
Code
declare const fn: (((...args: any[]) => any) | (() => boolean));
fn(1, 2, 3);
Expected behavior:
The call to fn(1, 2, 3) should succeed, as it should match the (...args: any[]) => any part of the union.
Actual behavior:
I get the error: "Supplied parameters do not match any signature of call target."
TypeScript Version: nightly (2.2.0-dev.20161121)
Code
Expected behavior:
The call to
fn(1, 2, 3)should succeed, as it should match the(...args: any[]) => anypart of the union.Actual behavior:
I get the error: "Supplied parameters do not match any signature of call target."