TypeScript/tests/cases/compiler/functionCall14.ts
2014-07-12 17:30:19 -07:00

7 lines
117 B
TypeScript

function foo(a?:string, ...b:number[]){}
foo('foo', 1);
foo('foo');
foo();
foo(1, 'bar');
foo('foo', 1, 3);