mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 06:05:02 +03:00
11 lines
277 B
TypeScript
11 lines
277 B
TypeScript
declare function fn(x: any): void;
|
|
declare function takeTwo(x: any, y: any): void;
|
|
declare function withRest(a: any, ...args: Array<any>): void;
|
|
var n: number[];
|
|
|
|
fn(1) // no error
|
|
fn(1, 2, 3, 4)
|
|
takeTwo(1, 2, 3, 4)
|
|
withRest('a', ...n); // no error
|
|
withRest();
|
|
withRest(...n);
|