2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/genericFunctionsWithOptionalParameters2.ts(7,1): error TS2346: Supplied parameters do not match any signature of call target.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/genericFunctionsWithOptionalParameters2.ts (1 errors) ====
|
|
|
|
interface Utils {
|
|
|
|
fold<T, S>(c: Array<T>, folder?: (s: S, t: T) => T, init?: S): T;
|
|
|
|
}
|
|
|
|
|
|
|
|
var utils: Utils;
|
|
|
|
|
|
|
|
utils.fold(); // error
|
|
|
|
~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2346: Supplied parameters do not match any signature of call target.
|
2014-07-13 01:04:16 +02:00
|
|
|
utils.fold(null); // no error
|
|
|
|
utils.fold(null, null); // no error
|
|
|
|
utils.fold(null, null, null); // error: Unable to invoke type with no call signatures
|
|
|
|
|