mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
Add failing test for function calls that have at least one non-spread argument, a spread argument, and overall potentially too few arguments
This commit is contained in:
@@ -4,6 +4,7 @@ declare function prefix(s: string, a?: number, b?: number): void;
|
||||
declare function rest(s: string, a?: number, b?: number, ...rest: number[]): void;
|
||||
declare function normal(s: string): void;
|
||||
declare function thunk(): string;
|
||||
declare function prefix2(s: string, n: number, a?: number, b?: number): void;
|
||||
|
||||
declare var ns: number[];
|
||||
declare var mixed: (number | string)[];
|
||||
@@ -32,3 +33,4 @@ rest("f", ...tuple)
|
||||
prefix(...ns) // required parameters are required
|
||||
prefix(...mixed)
|
||||
prefix(...tuple)
|
||||
prefix2("g", ...ns);
|
||||
|
||||
Reference in New Issue
Block a user